Move delete before redirection in post processing