Created
December 29, 2016 14:32
-
-
Save celticwebdesign/c611e3b117f7e925ae40169b98645404 to your computer and use it in GitHub Desktop.
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
http://snipplr.com/view.php?codeview&id=70656 | |
# First: | |
DELETE FROM wp_postmeta | |
WHERE post_id IN | |
( | |
SELECT id | |
FROM wp_posts | |
WHERE post_type = 'attachment' | |
) | |
; | |
# Second: | |
DELETE FROM wp_posts WHERE post_type = 'attachment' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment