/**
  * 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 occured while deleting the snapshots",
  *      404="Returned when unable to find the snapshots"
  *  }
  * )
  *
  * @param int $id A Snapshot identifier
  *
  * @return \FOS\RestBundle\View\View
  *
  * @throws NotFoundHttpException
  */
 public function deleteSnapshotAction($id)
 {
     $snapshots = $this->getSnapshot($id);
     $this->snapshotManager->delete($snapshots);
     return array('deleted' => true);
 }