/ Published in: SQL
Run these queries (phpMyAdmin will do) to delete all media in the library, and remove all post attachment affiliation
- # 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'
You need to login to post a comment.