<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def __delete_path(self, path):
 """ Deletes given path. :param path: Path to delete. :type path: unicode """


        if not foundations.common.path_exists(path):
            return

        parent_directory = os.path.dirname(path)
        is_path_registered = self.__engine.file_system_events_manager.is_path_registered(parent_directory)
        is_path_registered and self.__engine.file_system_events_manager.unregister_path(parent_directory)
        foundations.io.remove(path)
        is_path_registered and self.__engine.file_system_events_manager.register_path(parent_directory)