Created
April 7, 2018 11:40
-
-
Save fcjurado/4be64cd39fc76dac827827c2ce720331 to your computer and use it in GitHub Desktop.
WordPress delete all posts & attachments
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 post delete $(wp post list --post_type='post' --format=ids) --force | |
wp post delete $(wp post list --post_type='attachment' --format=ids) --force; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment