When your hosting disk space starts to fill up but you are not yet considering an upgrade, you might need to delete WordPress media that is no longer used, whether it is images, documents, videos, or other files.
It would certainly be tedious to search for unused media one by one, but there is good news for WordPress users because we can perform a bulk delete or mass deletion of unused media on our WordPress site.
How to Delete Unused WordPress Media
As usual, there are two ways to delete unused WordPress media, either manually or by using a plugin. Of course, both methods will be discussed in this article, and you can decide which one to use.
Option 1: Deleting Unused WordPress Media Manually
To perform deletion this way, we certainly need to log in as an admin account WordPress, or an account with another role that has permission to delete content and media.
After logging in, we can then open the Media → Library page from our dashboard.
From the media library page, we can sort through unused media. However, if the media library is currently displaying the list of media in List Viewmode, change the view to Grid View.
Now that our media library view is in Grid View or grid mode, we can sort by clicking the dropdown all media items and selecting the unattached
option. If there is a lot of media we want to delete, we can click the Bulk Select button and select each piece of media we want to remove.
After all the media to be deleted has been selected, we can then click the Delete Permanently button to remove the selected media from our hosting or server.
Congratulations, we have now reduced the disk space usage on our hosting by deleting unused WordPress media.
Option 2: Deleting Unused WordPress Media Using a Plugin
Too much media to delete? It is recommended to use a plugin because we can immediately select many items at once with the select allfeature, unlike the manual method where we need to select media one by one.
For this method, we will use the Media Cleaner: Clean your WordPress!plugin, so please install the Media Cleaner plugin first if it is not already installed on your website.
After the plugin is installed and active, we can then open the Media → Cleaner menu from our WordPress dashboard to access the media cleaning tools.
Click the scan button to search for unused media. This feature will automatically scan for media that is not used on the pages created on our WordPress site, but usually, media other than images will be detected as unused, so we need to be careful when selecting media later.
After the scan process is complete, we can immediately select the Select all option by clicking the checkbox in the table header, and all media will be automatically selected.
Because all media is already selected, the final step to delete all unused media is to simply click the Delete all button and wait for the deletion process to finish.
Those are two easy options for deleting unused WordPress media. However, please be aware that sometimes there are images that are actually used on certain pages but are still read as unattached. So, be sure to double-check each of our pages after we finish the deletion.
COMMENTS
Loading...