public function cdeleteAction(Request $request)
    {
        $idsData = $request->get('ids');
        $ids = explode(',', $idsData);

        if (!count($ids)) {
            throw new MissingParameterException('TargetGroupController', 'ids');
        }

        $targetGroups = $this->getTargetGroupRepository()->findById($ids);

        foreach ($targetGroups as $targetGroup) {
            $this->getEntityManager()->remove($targetGroup);
        }

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

        return $this->handleView($this->view(null, 204));
    }