src/Controller/Api/MediaController.php
public function deleteMediumAction($id)
    {
        $medium = $this->getMedium($id);

        $this->mediaManager->delete($medium);

        return ['deleted' => true];
    }
public function deleteMediumAction($id)
    {
        $medium = $this->getMedium($id);

        $this->mediaManager->delete($medium);

        return ['deleted' => true];
    }
public function deleteMediumAction ( $ id ) { $ medium = $ this -> getMedium ( $ id ) ; $ this -> mediaManager -> delete ( $ medium ) ; return [ 'deleted' => true ] ; }
Deletes a medium.

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

@param int $id A medium identifier

@throws NotFoundHttpException

@return View
Deletes a medium .