/** * {@inheritdoc} */ public function delete(\Magento\Eav\Api\Data\AttributeGroupInterface $group) { try { $this->groupResource->delete($group); } catch (\Exception $e) { throw new StateException(__('Cannot delete attributeGroup with id %1', $group->getId()), $e); } return true; }