Media files are shared resources in WordPress. How you upload, reuse, and delete media affects performance, storage, and content stability across the entire site.
Before You Start
- You should have access to the WordPress Media Library.
- No files need to be uploaded or deleted for this tutorial.
- This guide focuses on behaviour and consequences, not tools.
How the Media Library Works
The Media Library stores all uploaded files in a central location.
Important elements to understand:
- One file can be used in multiple posts or pages.
- Deleting a file removes it everywhere.
- Removing a file from content does not delete it.
This shared nature is powerful but extremely easy to misuse without intentional efforts.
Uploading Media With Intent
Media uploads should be deliberate rather than impulsive.
Good practices include:
- Uploading only what you plan to use
- Using clear, descriptive file names
- Avoiding duplicate uploads of the same file
Media clutter accumulates quickly and is very difficult to clean later.
Image Size and Performance
Large images are a common performance bottleneck.
Uploading oversized images leads to:
- Slower page loads
- Higher bandwidth usage
- Inconsistent display across devices
Images should be sized and optimized reasonably before upload whenever possible.
Replacing vs Deleting Media
Replacing a file and deleting a file are very different actions.
Deleting media:
- Breaks all references to that file
- Creates missing (404 error) images across the site
Replacing media may preserve references but should be done cautiously, especially if dimensions or file types change.
Media Metadata and Organization
Each media item includes metadata such as title and alt text.
Alt text is important for:
- Accessibility
- Search understanding
Metadata should describe the content of the image, not its decoration.
Cleaning the Media Library Carefully
Cleaning unused media is tempting but risky.
Without careful verification, cleanup can:
- Accidentally remove images that are still in use (somewhere)
- Break layouts and content
Media cleanup should be slow, deliberate, and backed up.
Verify Your Understanding
- You understand that media files are shared resources.
- You know the difference between removing and deleting media.
- You recognize how image size affects performance.
Common Issues
- Deleting media to “clean up”: Breaks existing content.
- Uploading oversized images: Slows pages unnecessarily.
- Re-uploading duplicates: Creates clutter and confusion.
Related Tutorials / Next Steps
- Content Organization Basics
- Avoiding Content Sprawl
Responsible media management reduces hidden maintenance costs and keeps content stable as your site grows.