src/Sulu/Bundle/TagBundle/Controller/TagController.php
public function deleteAction($id)
    {
        $delete = function($id) {
            try {
                $this->getManager()->delete($id);
            } catch (TagNotFoundException $tnfe) {
                throw new EntityNotFoundException(self::$entityName, $id);
            }
        };

        $view = $this->responseDelete($id, $delete);

        return $this->handleView($view);
    }
public function deleteAction($id)
    {
        $delete = function($id) {
            try {
                $this->getManager()->delete($id);
            } catch (TagNotFoundException $tnfe) {
                throw new EntityNotFoundException(self::$entityName, $id);
            }
        };

        $view = $this->responseDelete($id, $delete);

        return $this->handleView($view);
    }
public function deleteAction ( $ id ) { $ delete = function ( $ id ) { try { $ this -> getManager ( ) -> delete ( $ id ) ; } catch ( TagNotFoundException $ tnfe ) { throw new EntityNotFoundException ( self :: $ entityName , $ id ) ; } } ; $ view = $ this -> responseDelete ( $ id , $ delete ) ; return $ this -> handleView ( $ view ) ; }
Deletes the tag with the given ID.

@param $id

@return Response
Deletes the tag with the given ID .