src/Controller/Api/SiteController.php
public function deleteSiteAction($id)
    {
        $site = $this->getSite($id);

        $this->siteManager->delete($site);

        return ['deleted' => true];
    }
public function deleteSiteAction($id)
    {
        $site = $this->getSite($id);

        $this->siteManager->delete($site);

        return ['deleted' => true];
    }
public function deleteSiteAction ( $ id ) { $ site = $ this -> getSite ( $ id ) ; $ this -> siteManager -> delete ( $ site ) ; return [ 'deleted' => true ] ; }
Deletes a site.

@ApiDoc(
requirements={
{"name"="id", "dataType"="integer", "requirement"="\d+", "description"="site id"}
},
statusCodes={
200="Returned when site is successfully deleted",
400="Returned when an error has occurred while deleting the site",
404="Returned when unable to find the site"
}
)

@param int $id A Site identifier

@throws NotFoundHttpException

@return \FOS\RestBundle\View\View
Deletes a site .