Skip to content

Delete all your Woocommerce orders with this script.

Notifications You must be signed in to change notification settings

mauran/Woocommerce-delete-all-orders

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 

Repository files navigation

Delete all Woocommerce orders

Delete all your Woocommerce orders with this script. Use at own risk

I just want the SQL-queries

Here you go!

DELETE FROM wp_woocommerce_order_itemmeta;
DELETE FROM wp_woocommerce_order_items;
DELETE FROM wp_comments WHERE comment_type = 'order_note';
DELETE FROM wp_postmeta WHERE post_id IN ( SELECT ID FROM wp_posts WHERE post_type = 'shop_order' );
DELETE FROM wp_posts WHERE post_type = 'shop_order';

About

Delete all your Woocommerce orders with this script.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages