WP-CLI to delete more than 100 products at a time?
-
This command lets me to delete 100 WooCommerce products at a time in specific category. How could I delete ALL products within the given category? Or how could I determine the number of products that should be deleted.
wp post delete $(wp wc product list --user=1 --format=ids --category=64) --forceLets say that I have 2000 products to delete and would prefer not having to run deletion command 20 times 🙂
Thank you!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘WP-CLI to delete more than 100 products at a time?’ is closed to new replies.