Skip to content

Instantly share code, notes, and snippets.

@dannycroft
Created April 13, 2011 08:13
Show Gist options
  • Save dannycroft/917176 to your computer and use it in GitHub Desktop.
Save dannycroft/917176 to your computer and use it in GitHub Desktop.
Magento Enterprise 1.9.0.0 - Cleans out all the orders that may have accumulated during the development process
TRUNCATE TABLE sales_flat_order;
TRUNCATE TABLE sales_order_tax;
TRUNCATE TABLE downloadable_link_purchased;
DELETE FROM eav_entity_store WHERE entity_type_id IN (SELECT entity_type_id FROM eav_entity_type WHERE entity_type_code IN ('order', 'invoice', 'creditmemo', 'shipment'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment