src/Sulu/Bundle/AudienceTargetingBundle/Controller/TargetGroupController.php
public function deleteAction($id)
    {
        $targetGroup = $this->retrieveTargetGroupById($id);

        $this->getEntityManager()->remove($targetGroup);
        $this->getEntityManager()->flush();

        return $this->handleView($this->view(null, 204));
    }
public function deleteAction($id)
    {
        $targetGroup = $this->retrieveTargetGroupById($id);

        $this->getEntityManager()->remove($targetGroup);
        $this->getEntityManager()->flush();

        return $this->handleView($this->view(null, 204));
    }
public function deleteAction ( $ id ) { $ targetGroup = $ this -> retrieveTargetGroupById ( $ id ) ; $ this -> getEntityManager ( ) -> remove ( $ targetGroup ) ; $ this -> getEntityManager ( ) -> flush ( ) ; return $ this -> handleView ( $ this -> view ( null , 204 ) ) ; }
Handle delete request for target group.

@param int $id

@return Response
Handle delete request for target group .