Event Handlers - Run Code Before/After Deleting an Item

Ahmad, if the code that you want to run is not page-related but rather data-related, you could use the Before Remove or After Remove hook.