src/Controller/Api/SnapshotController.php
public function deleteSnapshotAction($id)
    {
        $snapshots = $this->getSnapshot($id);

        $this->snapshotManager->delete($snapshots);

        return ['deleted' => true];
    }
public function deleteSnapshotAction($id)
    {
        $snapshots = $this->getSnapshot($id);

        $this->snapshotManager->delete($snapshots);

        return ['deleted' => true];
    }
public function deleteSnapshotAction ( $ id ) { $ snapshots = $ this -> getSnapshot ( $ id ) ; $ this -> snapshotManager -> delete ( $ snapshots ) ; return [ 'deleted' => true ] ; }
Deletes a snapshot.

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

@param int $id A Snapshot identifier

@throws NotFoundHttpException

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