public function removeAttributeGroup($attribute_group_name, $attribute_group_id, $attributeSetId) { $setup = new Mage_Eav_Model_Entity_Setup('core_setup'); $mapobj = Mage::getModel('customimport/customimport'); $attributeGroupId = $mapobj->getAttributeGroupByExternalId($attribute_group_id, $attributeSetId); if ($attributeGroupId) { $setup->removeAttributeGroup('catalog_product', $attributeSetId, $attributeGroupId); } else { $this->customHelper->reportInfo($this->customHelper->__("Attribute Group is not available to be removed.")); } }