proper file deletion event handling