src/Controller/Api/BlockController.php
public function deleteBlockAction($id)
    {
        $block = $this->getBlock($id);

        $this->blockManager->delete($block);

        return ['deleted' => true];
    }
public function deleteBlockAction($id)
    {
        $block = $this->getBlock($id);

        $this->blockManager->delete($block);

        return ['deleted' => true];
    }
public function deleteBlockAction ( $ id ) { $ block = $ this -> getBlock ( $ id ) ; $ this -> blockManager -> delete ( $ block ) ; return [ 'deleted' => true ] ; }
Deletes a block.

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

@param int $id A Block identifier

@throws NotFoundHttpException

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