src/Controller/Api/PageController.php
public function deletePageAction($id)
    {
        $page = $this->getPage($id);

        $this->pageManager->delete($page);

        return ['deleted' => true];
    }
public function deletePageAction($id)
    {
        $page = $this->getPage($id);

        $this->pageManager->delete($page);

        return ['deleted' => true];
    }
public function deletePageAction ( $ id ) { $ page = $ this -> getPage ( $ id ) ; $ this -> pageManager -> delete ( $ page ) ; return [ 'deleted' => true ] ; }
Deletes a page.

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

@param int $id A Page identifier

@throws NotFoundHttpException

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