Last active
June 22, 2024 18:39
-
-
Save michelmany/578e1a03b4b07b35a915ae5c7538fdad to your computer and use it in GitHub Desktop.
Delete all WooCommerce Products
This file contains 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
wp post list --field=ID --post_type=product --posts_per_page=2000 | xargs wp post delete --force | |
Delete from trash: | |
wp post list --field=ID --post_type=product --post_status=trash --posts_per_page=2000 | xargs wp post delete --force |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment