protected function BeforeDelete()
    {
        foreach (self::$deleteHooks as $hook)
        {
            $hook->BeforeDelete($this->item);
        }
        $logger = new Logger(BackendModule::Guard()->GetUser());
        $logger->ReportPageAction($this->item, Action::Delete());
        
        $file = Path::Combine(PHINE_PATH, 'Public/.htaccess');
        if (!File::Exists($file))
        {
            return;
        }
        $this->UpdateHtaccess($file); 
    }