I'm very new in Magento. I want to remove one of the attributes in Magento.

Call it PDF Preview.

When i click it, this error message pops up : Fatal Error

Can someone please advise what i need to do to remove the Attributes? I've read the documentation : Remove custom attribute

But i don't undertand how to run the files.

Thank you!


Just create a file with this content and call it from browser:


require 'app/Mage.php';

$setup = Mage::getModel('eav/entity_setup', 'core_setup');
$setup->removeAttribute('catalog_product', 'your_attribute_code');

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.