/** * Delete customer group. * * @param GroupInterface $group * @return bool true on success * @throws \Magento\Framework\Exception\StateException If customer group cannot be deleted * @throws \Magento\Framework\Exception\LocalizedException */ public function delete(GroupInterface $group) { return $this->deleteById($group->getId()); }