Skip to content

Instantly share code, notes, and snippets.

@aurire
Created April 16, 2016 18:30
Show Gist options
  • Save aurire/1827ed6da6e46ef33a11dcf16afa2afd to your computer and use it in GitHub Desktop.
Save aurire/1827ed6da6e46ef33a11dcf16afa2afd to your computer and use it in GitHub Desktop.
Magento. Remove attribute
//Remove attribute
Mage::getModel('catalog/product_attribute_api')->remove('test_01');
//Remove just from attribute set
Mage::getModel('catalog/product_attribute_set_api')
->attributeRemove($attributeId, $attributeSetId);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment