How do I delete thousands of unattached images?

That’s a lot of unattached images.
If you have couple of hundred images then you can delete them manually from media library.

1. Click 'Screen Options' at the top right and set 'Show on screen' to 200.
2. Click 'Apply'.
3. Click the checkbox just under 'Bulk Actions' to check all images on the page.
4. Select 'Delete Permanently' in the 'Bulk Actions' dropdown.
5. Click 'Apply'.

But if you have thousand of unattached images then it would be best to use a plugin.
DNUI (Delete not used image) plugin will do that for you. It will let you delete tons of images from media library.

Or use DX Delete Attached Media

Leave a Comment