Last active
October 29, 2021 20:21
-
-
Save jrobinsonc/b9857338c0c63a11e0409ae031db78c0 to your computer and use it in GitHub Desktop.
Clean installation of WordPress using WP CLI
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
# Delete all comments | |
wp comment delete $(wp comment list --format=ids) | |
# Delete posts revisions | |
wp post delete --force $(wp post list --post_type='revision' --format=ids) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment