Thumbnail Cleaner


Thumbnails Cleaner helps you keeping your WordPress installation tidy by removing and regenerating thumbnails.

All functions can be controlled from the plugins’ main page found under “Tools”. You can:

  • Create backups of your uploads directory so that you won’t lose any files.
  • Analyze your uploads directory, giving you an overview how many original files and thumbnails there are.
  • Clean thumbnails which will delete all of them while keeping the original files.
  • Restore thumbnails to start out with a clean uploads directory. This function requires the plugin Regenerate Thumbnails.
  • Restore backups in case you have lost a file that was not supposed to be deleted.

Please see the official website for a full

If you have any other ideas for features, please don’t hesitate to submit them by sending me an e-mail and I’ll try my best to implement it in the next version. Your username will be added to the plugin’s contributor list, of course (if you provide one).

Feel free to make Thumbnail Cleaner easier to use for non-English speaking users by help translating the plugin on Transifex.


  • The main page from which you can control Thumbnail Cleaner.


How to install

  1. Install Thumbnail Cleaner either through WordPress’ native plugin installer found under Plugins > Install or copy the thumbnail-cleaner folder into the /wp-content/plugins/ directory of your WordPress installation.
  2. Activate the plugin in the plugin section of your admin interface.
  3. Go to Tools > Thumbnail Cleaner to start cleaning up your WordPress installation.


The full FAQ can be found on the [official website](


Time saver, extremely useful

Thank you very much for this helpful plugin. The plugin is very useful if thumbnail sizes change with a theme change or similar (especially if the site has a great number of images). It’s only one click to delete all thumbnails and another to regenerate new thumbnails. I really hope the developer won’t be discouraged by the one star ratings from users who are not able to cope with site specific problems. Nobody should rate one star without asking for help first. Thank you very much for this great plugin, which saved me a lot of time and helped to clean up server space by removing thumbnails that are not used anymore.

Sorry, but it messed up all images

Never wrote a review on WP, but this time I have to. The plugin looked good, reviews were decent. I tried it on a woocommerce site, around 3k images. First the backup creation did not work (although I max out out resources on a decent server), memory errors.

Had a prior backup anyway so I hit the clean button. Afterwards… total chaos with the images. Some disappeared, others became skewed. Hit regenerate, but to no avail. Cleared cache, flushed dns etc. Some images dont show up in the media library anymore, others just show the broken link icon on the front end. Had I not done the full backup of a production ready site, I now would have to upload the images again.

I’m not sure whether I did something terribly wrong, but it doesn’t matter. A plugin that works with your upload folder should really be fool proof. This just cost me some hours of extra work and stress. Sorry guys.

Did the task!

Although, I run into a memory problem trying to make the picture backup, I proceeded as I had a very recent backup of the whole site.This is the only reason I give it only 4 stars.

The plugin did what I needed! My site has gone many changes since 2006 and had amassed sooo many thumbnails that the backups were gigantic.

Thanks so much !

Memory concern

Found your plug-in and tried it, but I got a fatal error:

Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 51582823 bytes) in /home/nbd610/public_html/wp-content/plugins/thumbnail-cleaner/classes/thumbnail-cleaner.php on line 82

I saw on another thread that someone had a large amount of files to process but it didn’t go. I think I might have a similar amount: 47160 files (1,258.89 MB) after I ran the analyzer.

What would I need to do to allow this to work? I’d really like to take advantage of this, and I see it’s helped others.

A very good one

Within WP 4.6 used Version 1.4.1. The actual uploads folder cleaned and thinned down 70% of the size. Simply great! Thanks for this neat, handy, and easy to use plugin!

Fatal error can not install

Plugin could not be activated because it triggered a fatal error.

Fatal error: Cannot redeclare class Thumbnail_Cleaner in /home1/xxxx/xxxx/xxxx/wp-content/plugins/thumbnail-cleaner/includes/classes.php on line 19

Read all 15 reviews

Contributors & Developers

“Thumbnail Cleaner” is open source software. The following people have contributed to this plugin.




  • Hotfix for version 1.4.1.


  • Added compatibility for WordPress 4.4.
  • Updated Font Awesome to 4.6.3.
  • Optimal improvements.


  • Redesigned analysis output as table.
  • Added originals_file_size, thumbnails_file_size and total_file_size to analysis output class.
  • Added more Font Awesome icons.
  • Added compatibility for PHP 7.
  • Added compatibility for WordPress 4.4.
  • Updated translations.


  • Updated translations.
  • Updated Font Awesome to 4.4.0.
  • Added compatibility for WordPress 4.3.1.


  • Added Font Awesome 4.3.0 locally.
  • Updated translations.
  • Added compatibility for WordPress 4.2.3.


  • This is the first release of Thumbnail Cleaner.