Skip to content

Instantly share code, notes, and snippets.

@matsubo
Created May 15, 2024 21:55
Show Gist options
  • Save matsubo/dadcfc7554bc62855352b899bf5a7348 to your computer and use it in GitHub Desktop.
Save matsubo/dadcfc7554bc62855352b899bf5a7348 to your computer and use it in GitHub Desktop.
Delete all article using wp-cli.
$ 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