/**
  * Remove a group
  * @param Group $group
  *
  * @AclAncestor("pim_enrich_group_remove")
  * @return Response|RedirectResponse
  */
 public function removeAction(Group $group)
 {
     $this->groupManager->remove($group);
     if ($this->getRequest()->isXmlHttpRequest()) {
         return new Response('', 204);
     } else {
         return $this->redirectToRoute('pim_enrich_group_index');
     }
 }
 /**
  * Removes a group
  *
  * @param Group $group
  */
 public function remove(Group $group)
 {
     $this->baseGroupManager->remove($group);
 }