Created
February 14, 2020 13:49
-
-
Save corsonr/c9b03ee67425606365b17742ba3d0a2f to your computer and use it in GitHub Desktop.
wp-cli: 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 delete $(wp post list --post_type='product' --format=ids --posts_per_page=10000) --force |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment