How do I delete all UNUSED images from my uploads directory?

Deleting images using plugin:

You can use this plugin, it will search your database and look if image is inserted into any post (in content, as featured image, in any custom field, anywhere…) or as background…

If image is not used anywhere it will give you option to delete it.
You will get list of all images on your site not used anymore, so you can safely delete them.

https://wordpress.org/plugins/dnui-delete-not-used-image-wordpress/

and this, still work, even it is outdated

https://wordpress.org/plugins/wordpress-uploaded-files-cleaner/


Deleting images manually:

You can also search through your media library for images which are unattached to posts and pages.

Go to media library and click the “unattached” it will display all images that may be displayed on other parts of your site or not used.

Leave a Comment