Created
November 17, 2017 09:15
-
-
Save dingo-d/92663935fd8086deb9b8f882958ed8b0 to your computer and use it in GitHub Desktop.
Delete all the posts with their asocciated postmeta in the database
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
DELETE p, pm FROM wp_posts p JOIN wp_postmeta pm ON p.ID = pm.post_id WHERE p.post_type = 'post' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment