Callback for delete script