Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- define('MAGENTO', realpath(dirname(__FILE__)));
- require_once MAGENTO . '/app/Mage.php';
- Mage::app();
- $collection = Mage::getModel('catalog/product')->getCollection();
- foreach($collection as $product) {
- echo "<p>".$product->getSku()." Deleted.</p>";
- $product->delete();
- }
Add Comment
Please, Sign In to add comment