pre-delete hook mode changed