Created
February 26, 2018 16:10
-
-
Save mmilosheski/83f40c72239772ae95609f77deb6966f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DELETE FROM wp_6_woocommerce_order_itemmeta; | |
DELETE FROM wp_6_woocommerce_order_items; | |
DELETE FROM wp_6_comments WHERE comment_type = 'order_note'; | |
DELETE FROM wp_6_postmeta WHERE post_id IN ( SELECT ID FROM wp_6_posts WHERE post_type = 'shop_order' ); | |
DELETE FROM wp_6_posts WHERE post_type = 'shop_order'; | |
DELETE FROM wp_7_woocommerce_order_itemmeta; | |
DELETE FROM wp_7_woocommerce_order_items; | |
DELETE FROM wp_7_comments WHERE comment_type = 'order_note'; | |
DELETE FROM wp_7_postmeta WHERE post_id IN ( SELECT ID FROM wp_7_posts WHERE post_type = 'shop_order' ); | |
DELETE FROM wp_7_posts WHERE post_type = 'shop_order'; | |
DELETE FROM wp_8_woocommerce_order_itemmeta | |
DELETE FROM wp_8_woocommerce_order_items | |
DELETE FROM wp_8_comments WHERE comment_type = 'order_note' | |
DELETE FROM wp_8_postmeta WHERE post_id IN ( SELECT ID FROM wp_8_posts WHERE post_type = 'shop_order' ) | |
DELETE FROM wp_8_posts WHERE post_type = 'shop_order' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment