How To Cleanup WordPress Image Library Manually And Automatically

We all have used media files somehow at some points while creating a website or blog by using WordPress. The WordPress media library is very useful for any kind of website as they contain relevant images and files which are used for attracting more and more people towards us. After containing the images, WordPress image cleanup is a necessary process because it may increase your site load time.

It has been usually seen that your media library is full of unused and irrelevant files which are very difficult to manage. These unusual files and images may result in poor management of your website.

Meanwhile, it is not a very hectic task to manage all your media library and files. You can easily manage your media library by cleaning it up regularly. This will help you to optimize your images appropriately so that your website and all of the media content will work smoothly and gives the best performance.

Here, in this article, we will discuss some of the best ways to clean up your WordPress media library easily. After that, we will discuss some of the best image cleanup plugins that can help to make the process easier. So without wasting any time let’s start this beautiful journey.

Why it’s necessary to reduce the amount of used storage

The amount of storage available to store your data and files depends only on hosting service. It will describe how much data and files you can store online over the internet. Some limitations are being set according to which you can store only a particular amount of data.

Meanwhile, it is also very important to set these limitations as the huge amount of media uploaded to your website can decrease the functionality and performance of your website.

If you upload more and more files to your website then it will also take a huge amount of time to access all those files which help in decreasing the page loading speed of your website. Your website will take a very long time to open which will also bother the visitors and drives them to visit the next site. It can also interfere with user experience (UX).

How to resize the images?

Size of the image is the most common factor that leads to consuming media space usage. Our media storage library is usually getting full because of the larger image size. We can optimize our media storage library by uploading smaller images to our media library.

It will help to increase the storage space in your media library. It also helps to improve the page loading speed of our website, both from the front and back ends.

You can use image scaling technique to resize your images without losing the image quality. By using image scaling you can minimize the number of pixels in your image without affecting the image quality. By minimizing the number of pixels in your image you can reduce the size of your image to some extent.

Use JPG images instead of PNG

The type of image file you use in your website also affects the media space usage. Usually, people save two types of pictures in their library i,e, jpg, and png image. Have you ever thought about which image type is best for saving space?

On comparing both of the images we can say that png image is better as the quality of the image, but it is also true that PNG images cover very large storage space. It is not always good to use these images as many websites don’t accept it on their website. PNG images are usually needed on those places where you need a transparent image background.

So it is more beneficial for us to use JPG images instead of PNG as it doesn’t cover very large space on our media library. You can also compress a JPEG image of larger size and convert it into a file of smaller size.

Remove duplicate images from the media library

Sometimes it is most common that you uploaded multiple copies of the same image. It can also be caused by WordPress’ automatic creation of multiple image formats (like Thumbnails, Medium, and large).

Multiple copies of the same images can lead to filling up the available storage space. This may result to decrease the page loading speed of your website.

You have the authority to easily remove the multiple copies of the same images in WordPress.

You just have to follow these given guidelines to put a stop to this:

  • Go to admin panel of your WordPress site.
  • Within the WordPress dashboard section just go the settings option.
  • Then go to the Media section of your WordPress Dashboard.
  • A dialog box will appear where different options are available.
  • Then all you have to do is to change the values in each box to 0. This will help to prevent the creation of multiple image sizes.
  • Lastly, don’t forget to press the Save button.

Without any dimensions in place, WordPress will not accept multiple sizes of the same image.

Delete unwanted files and images

You can easily free up space on your library by deleting all the unused and unnecessary files and images from our media library. This will help to optimize your website and also helps in increasing the loading speed of your website.

You can delete the unwanted files and media by following the guidelines given below:

  • Open your WordPress dashboard and go to media>>library. If you want to delete a single image then all you have to do is to press the delete button.
  • A popup window will appear on the screen. To remove the file from your media library just click the ‘OK’ option.
  • You can also delete multiple files and images at the same time. All you just have to do is to click on “Bulk Select at the top” from the media library page.
  • Click on all the files that you would like to delete, then choose the delete selected option.
  • Again a pop-up menu will appear on the screen and then press “OK” option to delete the images.

It is not always necessary to delete the images and files regularly from your media library. You can delete it according to your preference.

Now bending toward the point, we will explain to you how to cleanup WordPress media library with and without plugins. Firstly, let’s see’

How to clean up WordPress media library manually

Some people often choose to clean the media library files manually, rather trusting in any Media cleaner pro plugin. Meanwhile, it’s your decision to clean the media library manually and automatically.

You can manually clean the WordPress media library by following the given steps:

First of all, switch all your Media Library to the ListView>>go to the uploaded to column option.

Uploaded to column option enables you to determine which page or post are being uploaded to the media library. But it will not help you to determine the pages and posts that are not being used.

In the list view open the “File column” it will help you to see all the files and images used in your website.

Whenever you upload an image to WordPress, it automatically creates several copies in different sizes. This will use more space in your Media Library.

Now, click on each and every section of your site (includes Posts, Pages, products, etc.). Now it’s time for using the search box in the top right.

Search all the posts, pages, products, etc in the search box. This will help to give you an idea about which product is being used or not on your media library.

If you cannot find the specific result after searching in the search box, it means that the particular object is not in use in our media library.

Meanwhile, now you can easily delete the given object if it is not in use.

If you have any doubt related to any of the article then you can leave the file in the media library or you can also take technical help.

Now, see how to cleanup WordPress media library with plugins;

Best WordPress image cleanup plugins – 2019

The WordPress media library is a very unique and beneficial approach where you can save all your media files and images relevant for your website. It allows you to edit, view, and delete media which you had uploaded to your website previously. Media library also provides you the facility to select multimedia objects for deletion. It also offered search and filtering ability to find the desired media.

As we have seen that media library is very useful for all whether a person is a professional or a newcomer. But it is also very necessary to provide sufficient help and support to our media library management as it helps in optimizing our website.

Here in this article, we will learn about some of the best WordPress plugins for WordPress image cleanup. Let’s discuss them thoroughly.

1. Media Cleaner

Media cleaner is a smart media library management tool which helps to remove all the unused files and images from your media library. It helps to clean all your media entries as well as your broken entries.

This multipurpose plugin is very easy to install. After the installation, it will add all the unnecessary files which are not being used on your website to a temporary trash bin. You can also retrieve all your files from trash bins or you have the authority to delete them permanently.

Any kind of media entries are compatible with this plugin. This media library plugin is retina ready. It is integrated with Gutenberg as well as WooCommerce Support. It is also available in the pro version which helps to deal with complex plugins.


  • Clean every type of media entries as well as broken entries.
  • Uses the smart analysis for specific WordPress themes and plugins.
  • All the unused files are being saved in the trash area.
  • Compatible with Gutenberg and WooCommerce support.
  • Also comes in the pro version.
  • Helps to handle the complex plugins.

2. Image Cleanup

Image Cleanup is a responsive library management plugin. It also stores all the unused files and images in the trash bin of this plugin. Image Cleanup helps to index all the unused and unreferenced images. It also helps to determine the images without those with the incorrect metadata.

You can remove all the unwanted and unnecessary data from your website. This will help to increase the storage space in your media library. It also helps to increase the page loading speed of your website.


  • Indexed any unused images and move them to the temporary trash folder.
  • Determine images without metadata or with incorrect metadata.
  • Helps in fixing incorrect metadata (sizes).
  • Backup facilities for images are available.
  • Easy installation is available.
  • 24/7 customer support is available.


DNUI stands for ‘Delete Not Used Image’, as the name suggests, it does exactly the same work. It will help you to determine which image is being used in either any post or page.  The new version of this plugin is also released which supported the AngularJS framework.

It also uses Angular UI and Bootstrap framework. It usually comes in two versions: Basic and Pro.

The Pro version provides more support and help to the users. In Fact, it is also compatible with WooCommerce support. It automatically backup all your deleted so you can easily retrieve them when needed. But it is also very necessary to create your own backup of files and media.


  • Translation ready theme.
  • Easy to download and install.
  • Automatically backup your files and images.
  • Supports AngularJS, Angular UI and Bootstrap framework.
  • Provides WooCommerce Support in Pro version.
  • Search for all types of file and folder on your website.

4. Media Deduper Plugin

Media Deduper is highly advanced and responsive WordPress plugin used for cleaning up your media library. It will help you to eliminate all the duplicate files and images in your media library. It helps to delete all the duplicate files and media and also prevents future duplicates.

This WordPress media cleaner plugin is very easy to set up and install. After the installation basically performs two major tasks i.e.

Manages the duplication of all your media files. It helps to delete all the duplicate files and objects in your WordPress media library. The list saved in the media library is sorted in ascending order of the file size so that you can easily delete the unnecessary file according to your choice.

Prevent new duplication of files and media. It will perform a regular scan of media files uploaded by the admin. This will help to prevent the duplication of media files in your media library and also helps to guard against new duplicates.

Media deduper plugin offered many different options for making your media library compact and easy to use. It really offered you to improve the performance and page loading speed of your website.

You can keep all your media files clean and tidy. Due to its high efficiency, it is also considered as one of the smartest tools for cleaning the WordPress media library.

Some different ways to download & backup your media library

Media library offers you the facility to download and backup all your website’s content. This is very important as if somehow in the future if you need to clean up your media library then all your data and credentials will be closed and cannot be retrieved back. Hence, it is really that necessary to create a backup for all of your files and media.

In former days we use to back up the data manually but nowadays different plugins are available to do this job. You can use the BackUpWordPress plugin to backup all your data and files.

This can also be done via File Transfer Protocol (FTP) or you can simply download the WP-content folder from the server. You can save this data to a safe location like cloud storage.


I hope the information provided in this article is relevant to you. As there are many WordPress Image cleanup plugins are available in the market, so it is very difficult to explain each of them.

Leave a comment

Your email address will not be published. Required fields are marked *