Last active
June 19, 2024 18:39
-
-
Save petenelson/26dfb32f4f74cd7a478670aa716f6ae5 to your computer and use it in GitHub Desktop.
WP-CLI: Delete all terms or posts
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 term list taxonomy --field=term_id | xargs wp term delete taxonomy | |
wp post delete $(wp post list --post_type='page' --format=ids) --force |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment