Do you have a WordPress website?
Wants to know how to detect and delete unused images from your media library?
We use images on every WordPress page as they can attract readers easily. They can also bring traffic from the image searches as well as photo-sharing sites which will give you more mileage to your blog posts. But you should optimize them properly to reduce your page loading time.
Non-optimized images will diminish your website speed significantly. So don’t forget to compress them using online optimization tools like tinypng or WordPress plugins like Smush before using in the site. These tools help you to reduce the image size without losing quality.
Unused images are entirely different. Search your WordPress media library and probably you may find some unused images there that belong to any of your deleted posts and pages. They still consume space in your server and affect site speed even after deleting the parent contents. It is better to remove such files to free up space and reduce your page loading time.
Today we’ll tell you how to find and delete unused images in WordPress.
Delete unused images in WordPress
1. Sign in to your WordPress dashboard first.
2. Open your media library (Media > Library from the left pane of your screen). It will show all images uploaded to your website. Click ‘All media items’ drop-down box to filter images by type. WordPress allows you to find image, audio, video files, and own uploads in this way.
Choose ‘Unattached’ from the list.
It should display all your unattached images. It means you are not using them as featured images in any of the posts and pages. But still, there is a chance of using them as internal post images or in the sidebar widgets, theme settings, etc.
Click on an image that you want to delete. Scroll down to the bottom and locate ‘delete permanently’ to delete the selected image. Before deleting, make sure that you are not using anywhere in the site including posts, pages, and widgets.
Bulk Select is another option to erase all your unused images in one click. The option is available in your media library (check the last screenshot).
Click the Bulk Select button and now all images will appear in a dull background.
Select your unused images one by one to delete. Once you finished selecting images, Click the ‘Delete Permanently’ button to delete.