Created
June 17, 2019 01:58
-
-
Save extremeshok/f6f485990cec5e81662c569d835049f2 to your computer and use it in GitHub Desktop.
woocommerce wp-cli remove all 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
/usr/local/bin/wp-cli --allow-root --path=/var/www/html post list --field=ID --post_type=product | xargs /usr/local/bin/wp-cli --allow-root --path=/var/www/html post delete --force |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment