refactor notifyPathDeleted