Neos.Neos/Classes/Controller/Module/Administration/SitesController.php
public function deleteSiteAction(Site $site)
    {
        $this->siteService->pruneSite($site);
        $this->addFlashMessage('The site "%s" has been deleted.', 'Site deleted', Message::SEVERITY_OK, [htmlspecialchars($site->getName())], 1412372689);
        $this->unsetLastVisitedNodeAndRedirect('index');
    }
public function deleteSiteAction(Site $site)
    {
        $this->siteService->pruneSite($site);
        $this->addFlashMessage('The site "%s" has been deleted.', 'Site deleted', Message::SEVERITY_OK, [htmlspecialchars($site->getName())], 1412372689);
        $this->unsetLastVisitedNodeAndRedirect('index');
    }
public function deleteSiteAction ( Site $ site ) { $ this -> siteService -> pruneSite ( $ site ) ; $ this -> addFlashMessage ( 'The site "%s" has been deleted.' , 'Site deleted' , Message :: SEVERITY_OK , [ htmlspecialchars ( $ site -> getName ( ) ) ] , 1412372689 ) ; $ this -> unsetLastVisitedNodeAndRedirect ( 'index' ) ; }
Delete a site.

@param Site $site Site to delete
@Flow\IgnoreValidation("$site")
@return void
Delete a site .