Created
August 14, 2023 16:11
-
-
Save dgwyer/821b3773c9d90f57b275b365946a0604 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/bin/bash | |
# Delete all posts for specified posts types | |
wp post delete $(wp post list --post_type='post,page,product,attachment' --format=ids) --force |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment