Created
May 15, 2024 21:55
-
-
Save matsubo/dadcfc7554bc62855352b899bf5a7348 to your computer and use it in GitHub Desktop.
Delete all article 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
$ wp post list| awk '{print $1} '| xargs -n 1 -I XXX wp post delete XXX --force |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment