Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DELETE FROM wp_postmeta
- WHERE post_id IN
- (
- SELECT id
- FROM wp_posts
- WHERE post_type = 'attachment'
- )
- ;
- #Then once executed,
- DELETE FROM wp_posts WHERE post_type = 'attachment'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement