/ Published in: SQL

Run these queries (phpMyAdmin will do) to delete all media in the library, and remove all post attachment affiliation
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
# 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'
URL: http://wordpress.org/support/topic/delete-100000-images-from-media-library
Comments
