deleteGroup() abstract public method

Deletes the Group with the given $groupId.
abstract public deleteGroup ( integer $groupId )
$groupId integer
 /**
  * @param mixed $groupId
  *
  * @throws \eZ\Publish\API\Repository\Exceptions\BadStateException If type group contains types
  * @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException If type group with id is not found
  */
 public function deleteGroup($groupId)
 {
     if ($this->contentTypeGateway->countTypesInGroup($groupId) !== 0) {
         throw new Exception\GroupNotEmpty($groupId);
     }
     $this->contentTypeGateway->deleteGroup($groupId);
 }
 /**
  * Deletes the Group with the given $groupId.
  *
  * @param int $groupId
  */
 public function deleteGroup($groupId)
 {
     try {
         return $this->innerGateway->deleteGroup($groupId);
     } catch (DBALException $e) {
         throw new RuntimeException('Database error', 0, $e);
     } catch (PDOException $e) {
         throw new RuntimeException('Database error', 0, $e);
     }
 }