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();
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();