If you prefer to use an extension to add a «Delete» option on the orders list, see the Seamless Delete Order extension.

But if you want to do it by your own using the Magento functions, it’s quite easy. Just use something like this (this function would delete all orders, so don’t apply it directly!):

foreach(Mage::getModel('sales/order')->getCollection() as $order)
{
    $order->delete();
}
Categories: Extensions

0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.