Skip to content

Instantly share code, notes, and snippets.

@jcklpe
Created November 17, 2018 01:15
Show Gist options
  • Save jcklpe/fdc36c10ece65bea952bc5e7ceb9de7e to your computer and use it in GitHub Desktop.
Save jcklpe/fdc36c10ece65bea952bc5e7ceb9de7e to your computer and use it in GitHub Desktop.
wp-cli command to reset a websites media library
wp post delete $( wp post list --post_type=attachment --fields=ID --format=csv )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment