Redirect after post deleted

Maybe you use the hook deleted_post and create a rewrite. The hook runs just after a post or page is deleted. Action function arguments is post- or page-ID.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)