WordPress clean up media library

New Page


To download

Media Cleaner – Cleans and optimizes space

PorJordy Miau

  • Details
  • Reviews
  • Installation
  • Support for
  • Developing


Media Cleaner cleans your media library of media entries (and files) that are not used on your website, as well as broken entries. An internal trash can lets you make sure everything is working properly before deleting media entries (and files) permanently. It uses intelligent analysis powered by many implementations for specific plugins and themes.

It is the perfect companion for Database Cleaner.

Before using this plugin, make sure you have a proper backup of your installation. Ce n’est pas facultatif; It is requisite You cannot trust any tool that modifies or deletes your files.

For more information on compatibility, important information and the Pro version, lea esto hasta el final. For último, pero no menos important, es necesario leer el tutorial . Is available on the official website, here: Media Cleaner.


This tool cuts like a knife. Don’t use this plugin if you don’t have a recent backup or if you don’t understand what it does. Ce plugin a tout ce qu’il est possible de faire pour aider. Learn how to use it and you will get incredible results.


All files detected as unused will be listed in a dedicated panel. It will be up to you to remove them. They will then be moved to the plugin’s internal trash can in the plugin. After further testing, you can restore those files from the trash or you can delete them permanently.


This completion works with any type of media input, including retina and/or WebP versions. The plugin has been tested on modern WordPress installations (including Gutenberg), as well as many older versions. The plugin has also been tested on various topics together with a community of thousands of users. It is compatible with WooCommerce . If you are using complex plugins to manage your website content, the Pro version may be required . I am constantly increasing compatibility with other accessories.


Media Cleaner Pro bundles archiving system scanning, additional support for complex add-ons, ‘Sitio en vivo’ option and WP-CLI support.

With file system analysis, Media Cleaner Pro scans your physical /uploads directory and compares it to the media library.

Additional support refers to complex plugins, such as:

  • ACF, Metabox
  • Division builder
  • Merge Builder (Avada)
  • WPBakery Page Builder
  • Visual Composer
  • Elementary
  • beaver builder
  • Brilliant builder
  • oxygen builder
  • Delusional Revolution
  • Justified Image Grid
  • marco avia
  • … and many many more!

The Live Site option analyzes the online version of your website, which could improve the Cleaner’s accuracy in some extreme cases.

Pour finir, même si ce n’est pas important, Media Cleaner Pro est pris en charge par WP-CLI. Si tiene acceso directo (SSH) a su servidor, podrá ejecutar el complemento a una velocidad mucho mayor o hacer que se ejecute automáticamente, si lo desea.


Better to be safe than sorry. This plugin deletes files! Therefore, backup is not only important, it is required. Do not use this plugin if you are not ready. I can’t help you if you damage your media library permanently without a backup.


To make everything perfect, you will also need to clean and optimize your database. If you enjoy how Media Cleaner is made and supported, you will love Database Cleaner. Please give it a try!


  • Mike Meinz, an amazing developer from the US who made a thorough debugging of the whole process, loaded a lot of corrections and optimizations and added support for more plugins.
  • Satoshi Soma, an excellent Japanese developer.
  • To all the users who helped me with reproducing issues and testing new plugins and page builders.


screenshot-1 Media -> Media Cleaner



Medios -> Limpiador de medios

screenshot-2 screenshot-3


  1. Upload the plugin to WordPress.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Go to Meow Apps -> Cleaner in the sidebar and check the appropriate options.
  4. Go to Media -> Cleaner.




gleysen October 10, 2022

This plugin does its job to perfection! And the support is really responsive!


Perfect for cleaning

iosebah October 3, 2022

From our side, this plugins helps us very much for cleaning one old website previous to migrate it and we saved a lot of time… The final result was impressive… Very quick support if you need it and friendly staff. Thank you!


Works like a charm, and support is top notch

grex22 September 27, 2022

Well-developed plugin that solves a very tricky problem – and the plugin author is extremely active and tries to help people use his plugin successfully. Really… what more could you ask for?



vgstudios September 19, 2022



Best tool to clean up your unused media files

abdulabar September 15, 2022

Best tool to clean up your unused media files


media cleaner

bintronico September 10, 2022

a very good product and very useful

Read all 467 reviews

Contributors & Developers

“Media Cleaner – Clean & Optimize Space” is open source software. The following people have contributed to this plugin.


  • d21b79989071bd6ed38a9f11f9cd5a76Jordy Miaou

“Media Cleaner – Clean & Optimize Space” has been translated into 14 languages. Thanks to the translators for their contributions.

Translate “Media Cleaner – Clean & Optimize Space” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.


6.4.7 (2022/10/10)

  • Add: Fixed a potential issue while scanning the widgets.
  • Note: Please try my new Database Cleaner! You’ll love it.

6.4.6 (2022/09/27)

  • Add: Option to skip trash.
  • Update: Better and faster handling of options (big refactor).
  • Update: Tiny UI enhancements to make this a bit better.
  • Add: Better support for ACF Blocks.

6.4.5 (2022/09/10)

  • Add: Support for Ultimate Responsive Image Slider.
  • Add: Support for Presto Player.

6.4.4 (2022/09/01)

= Fix: Avoid duplicate issues, even if a file is analyzed twice for some reason. * Add: Auto-retry in the UI.

6.4.2 (2022/08/03)

  • Fix: Tiny UI issues in Safari.

6.4.1 (2022/07/25)

  • Add: Select a range of items by using shift.
  • Info: New plugin the the family! 🎉 It is simply called Database Cleaner, and it aims to be… the best Database Cleaner! You can find it here.
  • Info: I am working hard on Media Cleaner. If you want to give me some love and motivation, write a simple and nice review here. Thank you so much! 💖

6.4.0 (2022/06/30)

  • Add: Support for retry when an error occurs.
  • Fix: There was an issue with the resolution of some filepaths.

6.3.9 (2022/06/23)

  • Add: Support of the source tag.

6.3.8 (2022/06/13)

  • Fix: The links and thumbnails were broken in the Dashboard Trash.

6.3.7 (2022/06/07)

  • Fix: Better support for filters for filesystem scan (and a little optimization as well).
  • Fix: Better support for backgrounds/overlays in elementor.

6.3.6 (2022/05/17)

  • Fix: Support for Elementor background images.

6.3.5 (2022/05/05)

  • Fix: There were a few warnings related to undeclared arrays.
  • Add: Support for Metabox.

6.3.4 (2022/04/29)

  • Fix: Issue with Elementor.
  • Fix: Issue with JetEngine.
  • Add: Support for ACF Photo Gallery.

6.3.2 (2022/03/22)

  • Fix: Better support for WebP.

6.3.1 (2022/03/15)

  • Add: Do not rely on the Media Trash anymore (MEDIA_TRASH)!
  • Fix: Better support for WPBakery.
  • Add: Support for Google Web Stories.
  • Info: There is no need to add MEDIA_TRASH anymore 🙂 You can remove it from your wp-config.php if you added it in there.

6.3.0 (2022/02/20)

  • Fix: When a Media entry is removed from Media Library, also remove it from the Issues in the Cleaner Dashboard.

6.2.9 (2022/02/14)

  • Update: Consider SVGs as images.
  • Update: Support for WordPress 5.9.

6.2.7 (2021/12/11)

  • Add: Support for Jet Engine and its metaboxes and fields.
  • Add: Support for CM Business Directory.
  • Add: Support for Sunshine Photo Cart.
  • Add: Support for Woodmart Theme.
  • Add: Support for HTML in Product Descriptions.

6.2.6 (2021/11/15)

  • Add: jp_img_sitemap to the ignored post types.
  • Add: Works even when original size image filename contains resolution.
  • Fix: Support for roles.
  • Add: Support for Download Monitor.

6.2.5 (2021/10/19)

  • Fix: Avoid JS issues with a certain version of React used by WP.
  • Fix: Avoid some notices and warnings.
  • Add: Support fort wysizyg ACF field.

6.2.4 (2021/09/23)

  • Add: Option to consider Attached Images as In Use.
  • Update: Sanitized output for admin.
  • Update: Admin 3.6.

6.2.2 (2021/09/16)

  • Add: Option to consider Attached Images as In Use.
  • Update: Sanitized output for admin.

6.2.1 (2021/09/11)

  • Fix: Images Only now includes PNG, GIF, ICO and BMP on top of the JPGs.
  • Add: Support for ACF Repeater with Array of Images ID.
  • Add: Support for ACF Blocks.
  • Add: Support for Jet Engine.
  • Add: Support for Social Warfare.
  • Add: Support for WP Job Manager.
  • Add: Support for wpDiscuz.
  • Fix: Better support for Salient Theme.
  • Update: More powerful CLI.

6.2.0 (2021/08/28)

  • Fix: Little UI glitches fixed.

6.1.9 (2021/07/05)

  • Add: Updated UI and libraries.
  • Add: Support for Simple 3D Carousel.
  • Update: Better codebase that will allow new features and enhancements (like Pause, Retry, etc).

6.1.8 (2021/06/14)

  • Add: Support SVG.
  • Add: Support for Elfsight Slider.
  • Add: Support for Nimble Builder.

6.1.7 (2021/04/16)

  • Add: Support for Siteground cache.
  • Add: Support for Audio block.
  • Add: Support for WebDirectory.
  • Add: Avoid WordPress to automatically empty its trash.
  • Fix: Alternative for those who don’t have the MB module.

6.1.6 (2021/02/23)

  • Add: Support for Smart Slider.

6.1.5 (2021/02/13)

  • Add: Support for video tags (also used by the Gutenberg block).
  • Fix: WebP should be checked even though the content is not being checked.
  • Fix: Avoid scan to stop if a warning is sent by the server when using Live Scan.

6.1.3 (2021/01/13)

  • Add: Title of the Media Entry in the Cleaner Dashboard.
  • Add: Link to Image directly from Dashboard for a quick check.
  • Fix: Scan without content check was still checking for webp or retina parent files.


  • Fix: Fixed an issue with WPML (and potentially, Polylang as well).
  • Fix: Updated to Common Admin 3.3.


  • Fix: UI is even more dynamic.


  • Fix: WP CLI wasn’t working with the new role system.


  • Fix: Improved support for WebP.
  • Add: Avoid overring the roles used by the plugin.
  • Fix: Support for WPML and WPML Media.
  • Fix: Support for Advanced Ads.


  • Fix: Compatibility with Litespeed.
  • Update: Support for WP 4.8.


  • Update: Avoid too many refreshes of the statistics and the options in the Dashboard.
  • Update: Better logs for the licenser.
  • Add: Support for Brizy 2.0.


  • Update: Support for nonces.
  • Fix: Support for WooCommerce Downloads.
  • Fix: Some settings could not be changed when Filesystem was selected in Dashboard.
  • Add: Support for Justified Image Grid.
  • Add: Support for Custom Logo in themes.
  • Add: Support for Background Images in Avada (Fusion Builder).
  • Update: Added the sourcemaps for debugging purposes.


  • Fix: Works even if the Permalinks are disabled.
  • Fix: Create the DB as soon as it is required.


  • Fix: Avoid a notice with WP 5.5 (wp_make_content_images_responsive is deprecated).
  • Fix: Retrieve the correct path for the Rest API on every kind of install.


  • Update: Better and fresh new UI. The way it works was simplified while keeping the same features and giving more room for new ones. This is the biggest update to Media Cleaner ever 🙂
  • Update: Create the DB for Cleaner automatically if needed.


  • Update: Brings back errors management to the bulk actions (skip, skip all).
  • Update: Prompt before emptying the trash.


  • Update: Better and fresh new UI. The way it works was simplified while keeping the same features and giving more room for new ones. This is the biggest update to Media Cleaner ever 🙂
  • Add: Support for a few more plugins and themes.


  • Fix: Support for GeoDirectory.
  • Fix: Support for Modula Gallery.
  • Add: Better support for Fusion Builder (Avada).
  • Fix: Could not detect in the HTML absolute URLs starting with ‘wp-content’ directly.
  • Fix: Divi was not using the common file types.


  • Fix: There was an issue with the “Ignore” feature which was not working in some cases.
  • Add: Filter to allow developers to override the decisions of the plugin.
  • Add: Auto-add MEDIA_TRASH.
  • Fix: Fuzzier pattern matching for wording variety.


  • Add: Always Skip/Retry feature.
  • Add: “Images Only” for Media Library scan.
  • Add: Support for Salient theme.


  • Add: You can now sort the results by size and path. Little present for the week-end 😉


  • Add: Support for Image Map Pro.
  • Add: Support for Directories.
  • Update: Code cleaning and a bit of refactoring.
  • Update: Cleaner references table with null values when needed.
  • Fix: Check if the filename exists in the trash for every new upload (and if yes, give it a different filename).
  • Fix: Avoid crash related to unserialization.
  • Fix: Ignore some other plugins’ files which are not supposed to be scanned.


  • Update: UI improved in many ways, I hope you will love it more!
  • Add: Filter by issue, and allow to delete those specific issues.
  • Add: Support for the original image (-scaled) feature added in a recent version of WP.
  • Add: Support for Custom Product Tabs.
  • Add: Support for Support for FAT Portfolio.
  • Update: Better support for translations.
  • Update: Better support for Revolution Slider.
  • Update: Added additional checks for DOM parser and check if the DOM module is loaded.
  • Fix: 100% of the code was checked and a few tiny issues were fixed here and there.


  • Update: Creates the DB tables automatically.
  • Add: Support for Revolution Slider.
  • Add: Support for WP Residence.
  • Add: Support for Avia Framework.


  • Add: Check the IDs of the standard galleries.
  • Add: Support for the ACF groups.
  • Add: Support for the ACF fields for taxonomies.


  • Update: Better support for WPBakery.
  • Fix: Issue with the URLs pointing at the plugin’s tutorial page.
  • Fix: Avoid the scan to be halted by error logging.
  • Add: Basic support for WCFM MarketPlace.


  • Update: Admin refreshed to 2.4.
  • Fix: Support for ACF Aspect Ratio Crop, Tasty Pins, and more extensions.


  • Fix: ACF File field wasn’t being detected properly in some cases.
  • Fix: Support for WPBakery Masonry Grid and probably for many more cases than just this one.
  • Add: Ask for confirmation before deleting all the files at once.


  • Fix: Widgets were not scanned.
  • Add: Support for Divi modules.


  • Add: Option to disable the analysis of shortcodes.


  • Add: Support for Brizy Builder.
  • Fix: Doesn’t trigger the timeout check if WP-CLI is being used.
  • Add: WP-CLI can now delete and trash media entries and files.


  • Add: Support for Yoast SEO and its Facebook Image.
  • Add: Support for Elementor and Oxygen Builder.
  • Add: Support for ACF File Field.
  • Update: Better support for WP CLI.
  • Fix: Make sure the HTML is UTF8 encoded before analyzing it.
  • Update: Removed affiliate links to BlogVault in the Readme as it seems to be against the WordPress guidelines.


  • Add: Support for Uber, Easy Real Estate.
  • Update: Admin CSS and texts.
  • Fix: A rare but wrong call to the log() function was causing the plugin to fail.
  • Update: Clean the options. Now, the Content option replaces Posts/Meta/Widgets (they were useless in a way).
  • Add: Support for WP-CLI (have a look at the how-it-works.txt) in the Pro. Now, scanning can be 100x times faster.
  • Add: Option Live Site in the Pro.


  • Add: Lot of refactoring and optimizations.
  • Add: Support for Theme X, ZipList, and better support for standard websites as well.
  • Add: Yes/No dialog for Reset button.


  • Add: Support for Recent Blog Posts.
  • Add: Additional support for images used by the theme.


  • Add: Support for My Calendar (thanks to Mike Meinz).
  • Add: Support for iFrames (thanks to Mike Meinz).
  • Update: Code cleaning, reorganization and optimization.


  • Update: Many optimizations, modules and big sections of the code are now only loaded when really needed.
  • Fix: Filenames with spaces weren’t detected correctly and other.
  • Fix: Make sure that the shortcodes are resolved.
  • Add: Compatibility with more plugins (ACF Widgets, Attachments, Metaslider).


  • Add: Support for WebP.
  • Update: Avoid removing tables when plugin is only disabled.
  • Fix: For some, the tables couldn’t be reset.


  • Update: Admin style update and common framework updated.
  • Update: Compatibility with WordPress 5.1.


  • Add: Filters for Filesystem scan. Please have a look at the tutorial (https://meowapps.com/media-cleaner/tutorial/), there is now a section about those filters.
  • Fix: Query for metakey.
  • Fix: Thumbnails matching.
  • Update: Compatibility for WordPress 5 and Gutenberg.


  • Update: Slight code cleaning.
  • Update: Checkboxes are updated dynamically.
  • Info: Media Cleaner is better than ever by going through so many improvements and optimizations this year. The plugin has also been perfectly stable for a few weeks, so I have decided to change its version number. Please help this plugin survive by giving me a nice review, here: https://wordpress.org/support/plugin/meow-lightbox/reviews/?rate=5#new-post. Thank you 🙂


  • Fix: Issue with ACF Repeater.
  • Fix: Trash and Ignore features resulted in a weird behavior when used together.
  • Add: Now can delete the results of a search.
  • Update: Many UI improvements.


  • Update: Many parts of the UI were rewritten for a better experience. Buttons have a nicer logic.
  • Add: Enhanced error control. From now, when an error occurs during the scan, a popup will appear (asking to try again, or to skip the current item), and errors will be logged to the console.


  • Add: Added an option to only scan the thumbnails and ignore the base files.
  • Add: ACF Repeater support.
  • Update: Improved the code and the performance. Scan is now done differently, using the DB.
  • Fix: Debug logs weren’t logging (and enhanced them a bit).


  • Fix: Doesn’t remove the Media entry if the files cannot be deleted.
  • Update: Displays a warning if the log file cannot be created.


  • Update: Streamlined the plugin, tutorial has also been rewritten.
  • Update: Simplified the Settings. Removed the Gallery option, as it is part of the Posts or Post Meta.
  • Update: Support for UTF8, Background CSS, and Shortcodes have been moved to the Free version, and are now always enabled. Easier for everyone.
  • Add: Extra support for Page Builders is being added into the Pro version.


  • Add: Support for WooCommerce Short Description.
  • Add: Support for Divi Background.
  • Add: Support for Custom Fields Pro (ACF gallery).
  • Fix: Better support for CSS background.
  • Fix: Avoid detected file to be re-added if already there.
  • Update: Removed UTF-8 option (became useless).


  • Fix: Divi Single Image wasn’t always properly detected.
  • Add: Option for CSS background.
  • Update: Code cleaning, slighlty faster now.
  • Info: This plugin is hard work, don’t hesitate to review it 🙂 Thank you.


  • Update: Support for ACF (Image Field as Object, URL and ID).
  • Info: This plugin is hard work, don’t hesitate to review it 🙂 Thank you.


  • Update: Check DIVI Galleries and Single Images in Beaver Builder.
  • Update: Support for files which aren’t images and links (href’s).


  • Fix: Too many files were detected as used if WooCommerce was installed.


  • Info: This is a MAJOR UPDATE both in term of optimization and detection. Keep my motivation up and give a good review to the plugin here: https://wordpress.org/support/plugin/media-cleaner/reviews/?rate=5#new-post. That helps me a lot.
  • Update: Meta Data analysis is now cached, so much faster.
  • Update: URL detections became a bit more safer.
  • Update: Detect the images used by the themes more than before.
  • Fix: Images in widgets weren’t detected in many cases.


  • Update: Support for WP 4.9.
  • Fix: Could not empty trash if Media was already removed.


  • Fix: Meta search issue.
  • Fix: SQL typo for WooCommerce detection.
  • Fix: Avoid checking the empty arrays.


  • Info: This is a MAJOR UPDATE both in term of optimization and detection.
  • Add: Support for Fusion Builder (Avada).
  • Add: Cache the results found in posts to analyze them much faster later.
  • Add: Debugging log file (option).


  • Add: Support for WooCommerce Gallery.
  • Add: Support for Visual Composer (Single Image and Gallery).


  • Update: Bulk analyze/prepare galleries, avoid the first request to time out.
  • Add: Many option to make the processing faster or slower depending on the server.
  • Fix: Handle server timeout.
  • Add: Pause button and Retry button.


  • Update: Safest default values.


  • Add: Information about how a certain media is used (Edit Media screen).
  • Fix: Check / Create DB process.
  • Fix: Plugin was not working well with themes using Background/Header.
  • Update: A bit of cleaning.


  • Update: Core was re-organized and cleaned. Ready for nice updates.


  • Fix: Little issue when inserting the serial key for the first time.
  • Update: Compliance with the WordPress.org rules, new licensing system.
  • Update: Moved assets.
  • Info: There will be an important warning showing up during this update. It is an important annoucement.


  • Fix: Plugin was not working properly with broken Media metadata. It now handles it properly.


  • Fix: When over 1 GO, was displaying a lower size value.
  • Fix: Counting wasn’t exact with a Filesystem scan.
  • Info: Please read the previous changelog as it didn’t appear in WP for some reason.
  • Add: Check Posts also look for the Media ID in the classes (more secure).


  • Add: Now the Media can be recovered! You can remove your Media through the plugin, make sure they are not in use (by testing your website thoroughly) and later delete them definitely from the trash. I think you will find it awesome.
  • Update: Nicer internal icons rather than the old images for the UI.
  • Update: Faster and safer for post_content checks.
  • Update: This is a big one. The plugin is more clear about what it does. You need to choose either to scan the Media or the Filesystem, and also against what exactly. There has also been a few fixes and it will work on more big installs. If it fails, you can remove a few scanning options, and I will continue to work on making it perfect to support huge installs with all the options on.


  • Update: Show a better edit media screen.
  • Update: Will show the same number of items as in the Media Library (before it was fixed to 15 items per page).
  • Fix: Was displaying warning if the number of items per page in the Media page is not set.


  • Fix: HTML adapted to WP 4.5.1.
  • Fix: Doesn’t break if there is an error on the server-side. Display an alert and continue.
  • Update: Can select more than one file for non-Pro.
  • Fix: Issue with PHP 7.


  • Add: Option for resolving shortcode during analysis.
  • Update: French translation. Big thanks to Guillaume (and also for all his testing!).
  • Info: New name, fresh start. This plugin changed completely since it very first release 🙂


  • Add: Delete the unused directories.
  • Add: Doesn’t break when there are too many files in the system.
  • Add: Pro version with better support.
  • Update: Improved detection of unused files.
  • Fix: UTF8 filenames skipped by default but can be scanned through an option.
  • Fix: Really many fixes 🙂
  • Info: Contact me if you have been using the plugin for a long time and love it.


  • Add: Inclusion of gallery post format images.
  • Fix: Better gallery URL matching.
  • Info: Thanks to syntax53 for those improvements via GitHub (https://github.com/tigroumeow/media-file-cleaner/pull/3). Please review Media Cleaner if you like it. The plugin needs reviews to live. Thank you 🙂 (https://wordpress.org/support/view/plugin-reviews/media-file-cleaner)


  • Fix: Cross site scripting vulnerability fixes.
  • Change: Many enhancements and fixes made by Matt (http://www.twistedtek.net/). Please thanks him 🙂
  • Info: Please perform a “Reset” in the plugin dashboard after installing this new version.


  • Fix: Scan for multisite.
  • Change: options are now all enabled by default.
  • Fix: DB issue avoided trashed files from being deleted permanently.


  • Works with WP 4.
  • Gallery support.
  • Fix: IGNORE function was… ignored by the scanning process.


  • Add: thumbnails.
  • Add: IGNORE function.
  • Change: cosmetic changes.
  • Add: now detects the custom header and custom background.
  • Change: the CSS was updated to fit the new Admin theme.


  • Change: the MEDIA files are now going to the trash but the MEDIA reference in the DB is still removed permanently.
  • Stable release.
  • Change: Readme.txt.


  • Add: check the meta properties.
  • Add: check the ‘featured image’ properties.
  • Fix: keep the trash information when a new scan is started.
  • Fix: remove the DB on uninstall, not on desactivate.


  • Add: progress %.
  • Fix: issues with apostrophes in filenames.
  • Change: UI cleaning.


  • Add: options (scan files / scan media).
  • Fix: mkdir issues.
  • Change: operations are buffered by 5 (faster).


  • First release.


  • Version: 6.4.7
  • Last updated: 6 days ago
  • Active installations: 50,000+
  • WordPress Version: 5.0 or higher
  • Tested up to: 6.0.2
  • PHP Version: 7.0 or higher
  • Languages:

    See all 15


    Dutch, Dutch (Belgium), English (US), French (France), German, Japanese, Korean, Portuguese (Brazil), Russian, Slovak, Spanish (Colombia), Spanish (Ecuador), Spanish (Spain), Spanish (Venezuela), and Swedish.

    Translate into your language

  • Tags:

    limpiar borrar archivo archivos imágenes

  • Advanced View

Calificaciones Ver todo

  • 5 estrellas 400
  • 4 estrellas 18
  • 3 estrellas 11
  • 2 estrellas 6
  • 1 estrella 32

Inicie sesión para enviar una reseña.


  • d21b79989071bd6ed38a9f11f9cd5a76 Jordy Meow


Issues resolved in last two months:

19 out of 21

View support forum


Would you like to support the advancement of this plugin?

Donate to this plugin


Clean Up The WordPress Media Library. Remove Unused Images

Actualizado en August 18, 2022 – robar pugh

As your WordPress website grows, you may end up accumulating hundreds, if not thousands, of images. While hosts aren’t usually stingy when it comes to storage space, it still makes sense to clean up your website. If you don’t, you might find yourself with a massive collection of unused media files that can slow things down.

Fortunately, WordPress makes it easy to both upload and delete media files. That means there’s no excuse not to tidy up your image collection from time to time. Once you do, you should see your site running more smoothly and your workflows improved.

In this article, we’ll discuss why you may want to clean up your WordPress Media Library. We’ll then show you how to prepare for that process, two ways to do it, and some maintenance tips for when you’re finished. Let’s dive in!

Why you should clean up your WordPress Media Library

In your personal life, you may have plenty of good reasons to keep files you don’t access on a daily basis. For example, you might need to hold on to official documents or important receipts. But it can be more difficult to justify a large reserve of media files on your website.

Most hosting plans have a limit on storage, so even if you have a generous amount of space, you’re bound to run out if you’re not careful. And when it comes to websites, media files usually take up the bulk of your quota. This is especially true if you use high-resolution and non-optimized images, which take up a lot of room.

Consider how many images you use on average for pages or blog posts. Even on a modest website, it’s not uncommon to have hundreds of media files.

As you update landing pages, refresh blog posts, or add new products, old media files may no longer be needed. But if you don’t remove them from the library, they still sit there — taking up space and making it all the more difficult to find the right files. You don’t want to sift through dozens of pages of files to find that one photo you need right away. Like a tidy workspace, a well-organized media library is worth the effort for the time and frustration it might save you every single day.

Biblioteca de medios de WordPress con una variedad de imágenes.

On occasion, having too many images on your server can also slow down your WordPress website. However, that’s usually only the case if you’re loading a page with a massive number of files and can easily be avoided by using a Content Delivery Network (CDN). 

More importantly, if your Media Library is packed, this can be carried over to your backups, especially if they’re not incremental. This can cause site migrations and restorations — in addition to backups — to take much longer than necessary.

What to do before you delete media files in WordPress

Before you start deleting files from your Media Library, we recommend that you back up your website in its entirety. That way, if you delete any files that you can’t re-upload from your computer, you can revert to that backup.

There are a lot of ways to back up WordPress. Depending on your web host, you might have access to automated backups that you can restore from your hosting control panel. But in most cases, your best bet is to use a WordPress backup plugin like Jetpack Backup.

With Jetpack Backup, every change you make to your site is saved to the cloud in real time. That means you won’t need to create manual backups before updating your site, and you’ll always have recent copies available if something goes wrong.

Alternatively, if you’re planning to delete a large number of media files from WordPress, you might want to use a staging site. When you’re confident that you didn’t delete any critical media files, you can push that site live.

How to clean up your WordPress Media Library

Cleaning up media files in WordPress is remarkably simple. There are two ways you can go about this process: through the WordPress dashboard and via File Transfer Protocol (FTP). 

1. Clean up media files in your WordPress dashboard

To get started, log in to your WordPress dashboard and go to Media → Library. When you do, the WordPress Media Library will open and you’ll be able to navigate through all of the images and videos you’ve uploaded to your site.

archivos en la biblioteca de medios de WordPress

Deleting any single file within the Media Library is simple. Just click on the image or video that you want to remove and a window will pop up. The window will include a preview of the media file, relevant information, and its metadata.

archivo multimedia individual con opciones en la biblioteca multimedia

If you look at the bottom right corner of this screen, you’ll see an option labeled Delete permanently. Click on it and confirm your decision.

Although this process is simple, it can be very time-consuming if you need to delete a large number of media files. If that’s the case, you can return to the main screen of the Media Library and look for the Bulk Select button in the menu near the top of the page.

opción de selección masiva en la biblioteca de medios

Click on Bulk Select, and choose the files you want to remove. When you’re ready, select the Delete permanently option at the top of the screen.

la opción de eliminar imágenes de forma permanente en WordPress

WordPress will ask you to confirm the decision. After you do, the files will be gone. If you have multiple pages of media files, you’ll need to complete this process page by page.

2. Delete WordPress media files via FTP

You can also use an FTP client to delete large numbers of media files at once. The advantage of this approach is that it can remove entire years or months of media files in a matter of seconds.

To get started, you’ll need to connect to your website via FTP. If you don’t have an FTP client, we recommend using one that enables you to preview media files, like SmartFTP or Cyberduck.

Most web hosts will provide you with a set of FTP credentials when you sign up for a plan. If you don’t have access to those credentials, you should be able to create a new FTP account through your hosting control panel.

Once you connect to your server, you’ll need to find the WordPress ‘root folder.’ It contains all of the files and subdirectories that make up your website. Usually, it’s called something like public_html, public, www, or your website’s name.

When you locate the root folder, go ahead and open it. You’ll see a file structure that looks something like this:

archivos en la carpeta public_html de un sitio web

Next, find your WordPress media files in the wp-content/uploads directory. Inside, you’ll see folders for every year that your website has been around. Each year will contain subdirectories for individual months.

carpetas dentro del directorio de cargas

If you know what media files you want to delete by name, you can select them in bulk, right-click anywhere within the client, and then choose the Delete option.

This is where an FTP client that shows previews for media files may come in handy (like ForkLift or Commander One). With this option, it will be easier to determine which files to delete, even when you can’t identify them by name.

What to do after you clean up your WordPress Media Library

After you delete all of the unused media files in your library, there are a few things we recommend you do to complete the cleanup process. Fortunately, with the right tools, they’re very straightforward tasks.

1. Disable attachment pages in WordPress

By default, WordPress creates a new page for every media file you upload to your website. They’re called ‘attachment pages’ (or attachment posts), and in most cases there’s no reason to use them.

What’s more, if one of your images becomes popular (a lot of people are clicking on it), search engines might link to the attachment page directly. So you can end up getting clicks for a page that only includes an image or a video, and that doesn’t link to any other pages within your site.

After you remove unused images, you can end up with attachment pages that don’t have media files. That’s why we recommend disabling attachment pages entirely. This will also help keep your Media Library in check moving forward.

The easiest way to do this in WordPress is to use a Search Engine Optimization (SEO) plugin. You likely already have one installed, but if not, Yoast SEO and All In One SEO both include this feature.

If you’re using Yoast, go to SEO → Search Appearance → Media and look for the Media & attachment URLs option. Under ‘Redirect attachment URLs to the attachment itself?’ select Yes, and Yoast will disable attachment pages for media files.

Configuración de Yoast para medios y URL de archivos adjuntos

Alternatively, if you’re using All In One SEO, go to All in One SEO → Search Appearance, and select the Image SEO option from the drop-down menu at the top of the screen. On the next page, beside the Redirect Attachment URLs setting, select Attachment Parent.

Configuración de URL de archivos adjuntos en All in One SEO

This option will automatically redirect users who land on attachment pages to the posts where those images can be found. If the images don’t exist anymore, the pages themselves won’t show up.

2. Check for missing images on your website

Unfortunately, when you’re cleaning up your WordPress library, you may accidentally delete some files that you didn’t intend to. You might not even notice until you’re browsing the website, and you run across a page that isn’t loading images you know should be there.

To avoid this, after you clean up your Media Library, we recommend that you check all of the main pages on your site to see if they’re missing any important images. If they are, you’ll need to re-upload those files or restore a recent site backup.

The easiest way to check large numbers of pages for missing images is to use a plugin like Broken Link Checker. This plugin can scan your site for broken links and images, so you don’t have to do so manually.

Once you install and activate this plugin, simply go to Settings → Link Checker and proceed to the Which Links to Check tab. Here, you’ll find multiple options for links and media files that the plugin can check. 

If you just want to make sure you’re not missing any images, select the HTML images option and then click on Save Changes.

settings to check for broken media links

Go to the General plugin settings tab and you’ll find an overview of any missing images the plugin was able to locate. If you see a message that says No broken links found, that means you’re not missing any images.

Now you can go back to working on updating and improving your site. In most cases, you won’t need to clean your Media Library again for at least a few months.

3. Optimize your remaining images

Images are usually some of the largest files on a WordPress site and, because there are so many, can really slow things down. This is a big deal because users hate slow sites and search engines do, too. 

Optimizing your images can go a long way without sacrificing quality. And this has the added benefit of taking up fewer server resources, which is particularly helpful on shared hosting plans.

The easiest way to do this is by using a WordPress image CDN like Jetpack. This tool automatically compresses images for fast delivery and even delivers the right file formats and sizes based on the device type a visitor is using. And all of this is done behind the scenes, without any work required on your end.

Keep your WordPress website running smoothly

If you’ve been running your website for a while, you probably have dozens of media files you’re not using anymore. That’s why occasionally cleaning up your WordPress Media Library is a wise idea. Eliminating unnecessary files will free up storage and make your backups smaller and more manageable.

Vous pouvez supprimer des fichiers directement de votre médiathèque dans WordPress ou utiliser un client FTP pour les supprimer en gros lots. Quelle que soit l’approche que vous adoptez, vous devez vous assurer de sauvegarder votre site avant de supprimer des fichiers et de vous assurer que vous n’avez rien jeté d’essentiel lorsque vous avez terminé.

Si vous n’avez pas de solution de sauvegarde en place, vous voudrez certainement consulter Jetpack Backup. Il enregistre votre site en temps réel, vous aurez donc tous les détails en cas d’urgence. De plus, il conserve un journal d’activité afin que vous puissiez sélectionner le moment exact auquel vous souhaitez restaurer. 

All of this is stored offsite on secure WordPress servers. So it won’t slow down your site, and you can rest easy knowing your files are in good hands. 

This entry was posted in Performances, Photos & Videos. Add the permalink to your favorites.

Profile de Rob Pugh

rob pugh

Rob is Jetpack’s Marketing Manager. He has worked in marketing and product development for over 15 years, primarily at Jetpack, Mailchimp and UPS. Since earning a Master of Science in Marketing from Johns Hopkins University, he’s focused on delivering products that delight people and solve real problems.

Discover the advantages of the Jetpack

Find out how Jetpack can help you protect, speed up and grow your WordPress site.

Get up to 60% off your first year.

Compare plans

Share this

  • Facebook
  • Twitter
  • Whatsapp
  • Suite
  • LinkedIn
  • E-mail
  • To print
  • Pinterest
  • Tumblr
  • Reddit
  • Few

Like that:

I like loading…



11 Ways to Give Your WordPress Site a Spring Cleaning

Spring is in the air and it’s time to clean up. Many of us will spend a few days cleaning our homes and offices, or decluttering our computers and other electronic devices. But why stop there? In addition to freshening up your home, you should also take the time to…

6 avril 2018

Dans “Trucs & Astuces”


Easily integrate Google Photos into WordPress with this plugin

Photos are a great way to spice up your posts. They engage your readers, allow them to connect with the story you share, and increase the overall level of engagement with your site. But do you really want to spend time uploading images for your posts and uploading them…

19 avril 2018

Dans “Trucs & Astuces”


How to Bulk Upload Files and Media to WordPress via FTP

Don’t get stuck downloading files one at a time! Here’s how to bypass file upload size limits and work more efficiently. Complete guide with photos and examples.

May 10, 2022

In “Learn”

How to Clean Up Your WordPress Media Library

Publié dans Performances, Disponibilité, WordPress par Samantha Rodriguez

Dernière mise à jour le 8 février 2022

Les fichiers multimédias sont souvent des ajouts nécessaires à tout site Web. Cependant, il est facile pour votre bibliothèque multimédia WordPress de se remplir de fichiers inutilisés, ce qui peut ralentir votre site Web et rendre la gestion des médias difficile.

Heureusement, la gestion de votre médiathèque ne doit pas être une tâche fastidieuse. En le nettoyant régulièrement et en optimisant vos images de manière appropriée, vous pouvez être sûr que votre site Web (et son contenu multimédia) fonctionnent au mieux.

In this post, we’ll discuss various ways to clean up your WordPress Media Library. We’ll then introduce three image cleanup plugins that can make the process easier. Let’s get started!

Table of Contents

1. Why You Should Clean Up the WordPress Media Library

2. Reduce The Amount of Used Storage

3. Resize Images

4. Use JPG Images Instead of PNG

5. Eliminate Duplicate Images

6. Delete Unused Files and Images

7. Plugins For Image Cleanup

7.1. Media Cleaner

7.2. WP-Optimize

7.3. WPS Cleaner

8. How to Manually Clean Up the WordPress Media Library

9. Excel with WP Engine

Why You Should Clean Up the WordPress Media Library 

When you upload an image to your Media Library, WordPress makes several copies of it. Additionally, different themes and plugins may also request a variety of image sizes. Consequently, your Media Library can amass a lot of files that you may not be aware of. 

Ultimately, this can bog down your entire website, as all those images take up space on your web server. Another problem that can arise from a cluttered Media Library is oversized website backups. If you have an automatic backup process configured, your backup files can become large and unwieldy.

Depending on your web hosting plan, all those extra files could eventually cost you more each month, in addition to creating an overall slowdown. Still, it’s important to make at least one copy of your current website before tackling a Media Library cleanout. This is because most cleanout processes mean you’ll be deleting certain files for good. 

Reduce The Amount of Used Storage

The amount of storage space available to you will depend on your host. These limitations are put in place for good reason, as too much media uploaded to your website will eventually decrease its functionality.

For example, the more files that are uploaded to a website, the longer it will take to load. This can slow down site speeds, and may drive visitors away. It can also interfere with the site’s User Experience (UX).

Resize Images

There are many factors that contribute to media space usage – one of the most important being image size. By uploading smaller images to your Media Library instead of just downsizing larger images with HTML, you can increase the space available on your server. This should contribute to improved site speeds, both on the front and back ends.

Image scaling is also a great way of resizing your images without losing out on quality. In short, it enables you to use the minimum number of pixels to display your image, which directly correlates with a reduction in file size.

What’s more, how you treat images on your website can have a crucial impact on your website’s Search Engine Optimization (SEO). To learn more, check out our in-depth resource on image optimization and SEO. 

Use JPG Images Instead of PNG

Another factor that impacts media space usage is the image file types you use. The two most common are JPG and PNG, but the former is best when it comes to saving space.

When comparing JPG and PNG images side by side, you’ll notice a slight difference in quality. PNGs are often of higher quality, but this isn’t a dealbreaker for the majority of website images. The only time you really need to use PNGs is when you require a transparent image background.

When you use JPG instead of PNG, your images will naturally be of a smaller size. Of course, you can compress (or scale them) further if necessary.

Eliminate Duplicate Images

While you may sometimes upload multiples of the same image, duplicate images are usually caused by WordPress’ automatic creation of multiple image formats (such as Thumbnail, Medium, and Large). As we mentioned before, this can quickly fill up your available storage space, while also slowing your website down.

Fortunately, this is something you can easily put a stop to. To do so, head to Settings > Media within your WordPress dashboard:

Resize duplicate images Resize duplicate images

To prevent the creation of multiple image sizes, simply change the values in each box to 0. Then, click on Save Changes:

Resize image in wordpress media library Change image size in wordpress media library

With no dimensions in place, WordPress will no longer be able to save multiple sizes of the same image.

Delete Unused Files and Images

One of the easiest ways to unload storage space and keep your site running at its best is to delete all of your unused files and images.

Depuis le tableau de WordPress, ve a Medios > Biblioteca . Para eliminar una sola imagen, haga clic en ella y luego elija la opción Eliminar permanentemente en la parte lower de la pantalla :

Remove unused images from the wordpress media library Delete unused images in wordpress media library

Aparecerá una ventana emergente en la pantalla. Al hacer click en Aceptar , se eliminará el archivo de su biblioteca multimedia.

You can also delete files and images in bulk, which is a faster way to manage unused files. From the Media Library page, click Bulk Select at the top:

delete unused files in media library delete unused files in the media library

Click on all the files you want to delete and select Delete Selected . A pop-up will appear, and just like above, click OK to permanently delete these images:

delete unused files and images delete unused files and images

It is not uncommon to ‘collect’ files over time that are not needed. That’s why you should repeat this process at least every two months (although the more often the better).

Image Cleanup Plugins

The WordPress Means library is quite intuitive, which is beneficial for even the most experienced users. However, you may need a little more help when it comes to media library management. Here are three WordPress image cleanup plugins that you might find useful.

media cleaner

Media Cleaner is a simple plugin, which simplifies the removal of media files without using them. Once installed, this tool will add all files that are not used on your website (such as posts, pages or galleries) to a temporary trash can. You can then review the files to make sure you want to delete them and make your deletion permanent.


WP-Optimize offers a lot of functions related to the limpieza and optimización of the web site archives. In particular, you can configure the add-on so that the images are automatically ‘huérfanas’ or the images are configured in ciertos tamaños. Additionally, you can set up an optimization program that you adjust on your website. 

WPS Cleaner

WP Cleaner is a nettoyage plugin for multifunctional Web sites. However, it has specific features related to media. For example, you can check the total weight of your media files. Also, the user-friendly panel can help you identify unused media files and delete them in bulk or individually. WP Cleaner will also identify and include the media added through any main page builder plugin. 

How to Manually Clean WordPress Media Library 

If you want to forego adding another plugin to your website, you have another option. You can clean your WordPress media library manually.

Antes de hacerlo, es una buena idea hacer una copy de seguridad de su sitio web. This can be done with an add-in like BackUpWordPress.

You can also backup only your media library via File Transfer Protocol (FTP) . Simply download the wp-content file from your site’s server and store it in a safe place (such as cloud storage).

Once you’ve preserved your current website content, you can start cleaning up and removing files from your library that you no longer need. This can be done by going to Media > Library on your dashboard. To delete a single image, click on it and then choose the Delete Permanently option at the bottom of the screen.

A popup will appear and clicking OK will remove the file from your media library.

You can also bulk delete files and images, which is a faster way to manage unused media. From the Media Library page, click Bulk Select at the top.

Click on all the files you want to delete and choose Delete Selected . Then select OK to permanently delete those images.

It is not uncommon to ‘collect’ files over time that are not needed. That’s why you should repeat this process at least every two months (although the more often you complete it, the better).

If you choose to delete your files using the dashboard as described above, you’ll also want to double check them using FTP. Depending on how they were added, some images may still remain on your server, so it’s important to make sure they’re removed forever.

Excel with WP engine

Like a cluttered room, a cluttered media library is probably not very functional. Heureusement, we are here to help you learn more about exceptional website management.

This often starts with accessing the best developer resources. Also, if you want to get more d’informations sur le nouveau responsive customer service and reliable uptime, be sure to check out our managed hosting plans!

Google Google translator

Google Google Translate

Video WordPress clean up media library

Related Posts

Free chat room code for my website

Contents1 How to set up a free chat room on the website.2 3 comentarios2.1 Trackbacks/Pingbacks2.2 Submit a Comment Cancel reply3 How to Create a Chat Room Website…

Background image full screen css

Contents1 Cómo – Full Page Image1.1 Example1.2 Example2 CSS background image tamaño tutorial: how to codify a complete page background image3 Perfect Full Page Background Image3.1 Méthode CSS géniale,…

WordPress leverage browser caching

Contents1 Aproveche el almacenamiento in hidden del navegador1.1 Will it works for my website?1.2 Where are plugin options1.3 Some JavaScript files still display under Leverage Browser Caching1.4…

WordPress post to facebook page

Contents1 How to Automatically Post to Facebook from WordPress1.1 Download Now: How to Launch a WordPress Website [Free Guide + Checklist]1.2 1. Create an IFTTT account.1.3 2….

Download images from wordpress media library

Contents1 How to export your WordPress media library1.1 Download maintenant : How to launch a WordPress website [Free Guide + Checklist]1.2 How to export your WordPress media…

WordPress single post template

Contents1 How to Create Custom Unique Post Templates in WordPress2 Post Template Files2.1 author.php2.2 Fecha.php3 Handbook navigation4 How to Create Custom Single Post Templates in WordPress5 Video…