Created
May 9, 2017 14:33
-
-
Save Alexed93/c1266842e09ef700170c8d1c52bbb4c1 to your computer and use it in GitHub Desktop.
Bin all attachments (i.e. just after cloning a DB and setting up the site locally, but before adding any new uploads)
This file contains 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 delete $(wp post list --post_type='attachment' --format=ids) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment