Programmatically remove order in Magento
<?php
require_once ‘app/Mage.php’;
umask(0);
Mage::app();
Mage::register(‘isSecureArea’, true);
$orders = Mage::getModel(‘sales/order’)->getCollection();
foreach ($orders as $order) {
$order->delete();
}