/ Published in: SQL
Run these queries (phpMyAdmin will do) to delete all media in the library, and remove all post attachment affiliation
URL: http://wordpress.org/support/topic/delete-100000-images-from-media-library
URL: http://wordpress.org/support/topic/delete-100000-images-from-media-library