How can I redirect users after they cancel their accounts? Is there a way redirect users after they cancel their accounts?  I've configured my site to allow users to cancel their accounts without e-mail confirmation, but I want to be able to redirect them to a "goodbye" page to reassure them that their account was in fact cancelled.

In user_cancel(), though, account cancellation is performed with the Batch API.  I tried adding a drupal_goto() after the call to batch_set($batch), but this forces the goto and the batch processing is not performed.

How can I redirect non-admin users after they cancel their accounts?
There are two fine ways to do it :


With Rules : If you have installed it already then you must use this. Select the event "After a user account has been deleted". Check the conditions you want and add action "Page Redirect".
With Hook : Write a hook_user_delete and add drupal_goto in your condition.