WordPress GuideManagement → Clean WordPress Uploads Folder

How to clean the WordPress uploads folder

Man sits at a desk staring at a desktop computer

Your WordPress uploads folder stores every image, PDF, video, and media file you’ve ever uploaded to your site. Over time, this folder can grow bloated with unused, duplicate, or outdated files. Cleaning it out helps speed up backups, reduce server space usage, and keep your Media Library manageable.

Let’s walk through how to safely clean your uploads folder—using a plugin or manually—without accidentally deleting files your site still needs.

Get fast, reliable WordPress hosting

Power your site with the industry’s most optimized WordPress hosting

Why your uploads folder needs cleaning

Before jumping into cleanup, it’s helpful to understand why this folder tends to grow out of control:

Cleaning this folder can free up storage, improve performance, and make managing your content easier.

Use a plugin to clean the uploads folder

For beginners or anyone who wants a safer, automated process, the best method is using a plugin like Media Cleaner.

Media Cleaner is a trusted plugin that scans your Media Library and WordPress database to find unused files. It works by identifying files that are no longer referenced anywhere on your site (posts, pages, widgets, etc.).

Manually clean the uploads folder

If you prefer not to use a plugin, or if you want more control, you can clean the uploads folder manually. This method requires access to your website’s files and some attention to detail.

Step 1: Back up your website

Step 2: Access your uploads folder

Step 3: Identify unused files

Manually identifying which files are no longer used can be tricky. Here are a few methods:

Step 4: Delete unused files

Step 5: Remove empty directories

Extra cleanup: Empty the media trash

When you delete media through the dashboard, WordPress moves it to the trash—just like deleted posts or pages.

This final step helps reclaim storage space on your server.

Important tips and best practices

Always back up before cleaning

Whether you use a plugin or do it manually, create a full backup first. Accidental deletions can break pages, especially if media files are embedded in shortcodes or builder elements.

Don’t trust the “Unattached” filter blindly

Many files used in custom fields, widgets, or sliders appear as unattached—even though they are still in use. Media Cleaner’s scan is more reliable than relying solely on the Unattached filter.

Clean regularly

Set a reminder to clean your uploads folder every few months, especially on media-heavy sites. This reduces server bloat and makes backup files smaller and faster.

Why hire WordPress maintenance services?

If you rely on your site for traffic, sales, or lead generation, outsourcing maintenance gives peace of mind and frees up your time.

Key benefits:

Additional resources

WordPress management tips and trends →

A crash course on hosting, plugins and themes, running multiple sites, and more

WordPress for the enterprise →

Can WordPress handle your enterprise level site? Learn benefits and best practices, and decide for yourself.

Simple WordPress website maintenance →

A quick and easy guide to help you maintain your WordPress site