Add a post-delete hook to cleanup