To clean up your WordPress media library, measure the uploads folder, stop WordPress making image sizes your site never displays, remove images nothing uses, and rebuild the thumbnails so the old copies go. The library is usually the largest thing on your hosting account, and most of its weight is copies of images rather than the images themselves. This guide is written for a Noiz client running WordPress on sLegacy or sPremium, does everything from the WordPress dashboard, and takes an afternoon on a large site.
Before you start
Last reviewed: 19 October 2026, against the current WordPress release. This guide is written for Noiz hosting and is kept current against WordPress. It complements, and does not replace, the official WordPress documentation linked below.
-scaled copy.Because disk is the one resource on Noiz shared hosting that is metered, and a bloated library also makes every backup larger and slower.
One upload is never one file. WordPress keeps the original and makes several resized copies, and your theme and plugins usually register more sizes, each made for every image. Ten or more files per upload is normal.
| Copy | What it is |
|---|---|
| The original | Kept on disk |
| Core sizes | A thumbnail, medium, medium-large and large size, plus two larger sizes for big images |
| Theme and plugin sizes | Usually more sizes, each made for every image |
The -scaled copy |
Made for a photo larger than 2,560 pixels. Your pages use it, while the full original stays on disk |
So there are two jobs: stop making copies nothing displays, and remove images nothing uses.
Note the total disk your subscription uses and the size of uploads, and compare them.
wp-content folder and note the size of uploads.uploads is a small part of the total, the space is going elsewhere (mail, a database, old backups), and this guide is not the fix.Settings > Media shows the three sizes you control. The sizes your theme and plugins add are not listed there, and the dashboard has no list of them. The plugin in Step 5 rebuilds whatever is registered, so you can skip the list and go on.

Set the size to 0 in Settings > Media, or remove a theme or plugin size with a small code snippet. A change of size only affects future uploads, so the copies already on disk stay until Step 5.
0 to stop WordPress making it. Change one size at a time, upload a test image and check your pages, because many themes rely on Thumbnail and Medium.add_action( 'init', function () {
remove_image_size( 'unwanted-size-name' );
} );
Replace unwanted-size-name with the name of a size your theme or plugin documents, and add the snippet the safe way described in How to Add Code Snippets to WordPress Safely. Never paste it into the theme's own files: the next theme update removes it.
Use the Unattached filter as a shortlist, then remove by hand on a small library or with a scanner on a large one. Work in batches and keep a backup behind you.
In Media > Library, switch to the list view and choose Unattached in the filter. Unattached means the image is not linked to a post or page in WordPress's records. It does not mean nobody sees it: an image uploaded straight to the library and then used as your logo, or placed by a page builder, is unattached and still on every page.

The free Media Cleaner plugin from the WordPress plugin directory scans your posts, pages and settings for each item in the Media Library and lists the ones it finds no reference to. Deleting from its list moves files to its own trash first, so you can put them back.
The free version checks the items in your Media Library. Files sitting in the uploads folder without a library entry need its paid version, which is beyond this guide.
Whatever you use, work in batches. Keep the plugin's trash for a week while you browse the site, and only then empty it. A scanner cannot see an image named only in custom CSS, a slider's settings or a template file, and it will offer those for deletion.
Rebuild them with the free Force Regenerate Thumbnails plugin. Rebuilding makes each image's copies match your current sizes and deletes the copies of sizes you retired, which is where most of the space comes back.
The plugin rebuilds every image and deletes the old copies first, which is the part that frees the space. It can take a long time on a very large library, so run it outside your busy hours: it uses your plan's processor while it runs, and your site shares that.
Before you install it, read the plugin's own compatibility note on its WordPress.org directory page and check it against the WordPress version you run.
Repeat Step 1. The uploads folder should be smaller, and your next weekly backup will be too. The Plesk figure updates on a schedule, not instantly, so check again the next day before you judge the result.
| Symptom | Why | What to do |
|---|---|---|
| Images are missing from pages after the clean-up. | An image was still in use. | Restore it from the plugin's trash, or restore the uploads folder from the backup you took before starting. |
| You deleted many images but the folder barely shrank. | The space is in the resized copies and the large originals. | Do Steps 3 and 5. |
| Nothing changed on disk after editing Settings > Media. | Expected. Size changes apply to new uploads until you rebuild. | Rebuild in Step 5. |
| The rebuild stops part way or the site slows down. | You have hit your plan's processor or memory figure for a while, which is normal during a big job. | Run it again at a quiet time. |
Read next:
If you would rather not delete anything yourself, WordPress Care keeps your WordPress core, plugins and themes current with a restore point before every change, and on Noiz hosting your plan's weekly backup is there as well. Clean-up work beyond that care is quoted separately, so tell us what the uploads folder is using and we will say what it needs.