How To Delete Magento Order Programmatically

How can I delete a Magento order by order id programmatically

You can call “delete” method to remove the Magento order

$incrementId = 1;
Mage::getModel('sales/order')->loadByIncrementId($incrementId)->delete();
0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments