src/Sulu/Bundle/ContactBundle/Controller/ContactController.php
public function deleteAction($id)
    {
        try {
            $deleteCallback = $this->getContactManager()->delete();
            $view = $this->responseDelete($id, $deleteCallback);
        } catch (EntityNotFoundException $e) {
            $view = $this->view($e->toArray(), 404);
        }

        return $this->handleView($view);
    }
public function deleteAction($id)
    {
        try {
            $deleteCallback = $this->getContactManager()->delete();
            $view = $this->responseDelete($id, $deleteCallback);
        } catch (EntityNotFoundException $e) {
            $view = $this->view($e->toArray(), 404);
        }

        return $this->handleView($view);
    }
public function deleteAction ( $ id ) { try { $ deleteCallback = $ this -> getContactManager ( ) -> delete ( ) ; $ view = $ this -> responseDelete ( $ id , $ deleteCallback ) ; } catch ( EntityNotFoundException $ e ) { $ view = $ this -> view ( $ e -> toArray ( ) , 404 ) ; } return $ this -> handleView ( $ view ) ; }
Deletes a Contact with the given ID from database.

@param int $id

@return \Symfony\Component\HttpFoundation\Response
Deletes a Contact with the given ID from database .