Skip to content

Instantly share code, notes, and snippets.

@corsonr
Created February 14, 2020 13:49
Show Gist options
  • Save corsonr/c9b03ee67425606365b17742ba3d0a2f to your computer and use it in GitHub Desktop.
Save corsonr/c9b03ee67425606365b17742ba3d0a2f to your computer and use it in GitHub Desktop.
wp-cli: delete all WooCommerce products
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