Skip to content

Instantly share code, notes, and snippets.

@trueqap
Created Jan 27, 2021
Embed
What would you like to do?
WooCommerce-Bulk-Delete-Product-With-WP-CLI
for run in {1..2}; do wp post delete $(wp wc product list --user=1 --format=ids --status=draft --per_page=100) --force; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment