/**
* @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);
}