If you are looking for a deleted photo or file, you may expect to find a Trash folder in the WordPress Media Library. Whether you can depends on your site’s settings: WordPress does not enable a media trash by default on many installations. This means a file you delete may be removed permanently instead of waiting in a Trash area. Here is where to look, how to restore an item if it is there, and what to do if you cannot find a Media Trash option.
Where Is the WordPress Media Trash?
When Media Trash is enabled, look in your WordPress dashboard under Media > Library. Switch the Library to List view if you are viewing thumbnails in Grid view. In List view, look for a Trash link among the filters above the media table. Depending on your WordPress version and screen layout, it may appear alongside links such as All, Images, Audio, or Unattached.
Click Trash to see media items that have been moved there. From this screen, you can restore an item or delete it permanently. The Trash link may not appear if Media Trash is disabled or if there are no trashed media items to display. The exact labels and layout can vary slightly between WordPress versions and admin customizations.
If you are using Grid view, the Trash filter may be less obvious or unavailable in the same way. Click the List view icon near the top of the Media Library and check the filters again. The view switch changes how the items are displayed; it does not change whether media trash is enabled.
Does WordPress Have a Media Trash by Default?
WordPress can support a trash status for media attachments, but many sites have this feature disabled by default. On those sites, deleting an image, PDF, or other media item from the Library may permanently delete it rather than move it to a recoverable Trash screen. That is why you may see a permanent-delete option without seeing a Trash link.
This behavior is different from deleting a post or page. Posts and pages commonly go to the standard WordPress Trash, where you can restore them before they are permanently removed. Media files are attachments, and their deletion behavior is controlled separately. As a result, finding a post in Trash does not necessarily mean its associated image will also be there.
Also, removing an image from a post or page is not always the same as deleting the media file. You can remove an image from the content editor while leaving the original file in the Media Library. Conversely, deleting the attachment from the Library can affect content that uses it. Check which action you took before assuming the file is gone.
How to Restore an Item from Media Trash
If the Trash filter is available and the missing file appears there, restoring it is usually straightforward:
- Open Media > Library in your dashboard.
- Switch to List view if needed, then click Trash.
- Find the attachment you want to recover.
- Choose Restore beneath the item, or select several items and use the bulk actions menu if your screen offers that option.
- Return to the main Library view and confirm that the media item is available.
Restoring an attachment brings it back to the Library; it does not necessarily put it back into every post or page where it was previously used. If the file was removed from content, open the relevant page or post and add it again. You may also need to check that the restored image displays correctly on the public site.
Do not confuse Restore with Delete Permanently. The permanent-delete action cannot normally be undone from the WordPress dashboard. If you are unsure whether you need a file, restore it or leave it in Trash until you can confirm.
How to Enable Media Trash
If there is no Trash filter, Media Trash may be disabled. WordPress provides a configuration constant that can enable it. A site administrator can add this line to the site’s wp-config.php file:
define( 'MEDIA_TRASH', true );
Place the line before the comment that says That's all, stop editing! If your configuration file already defines MEDIA_TRASH, do not add a second definition. Change the existing value instead. After saving the file, return to Media > Library, switch to List view, and check whether the Trash filter is available.
Editing wp-config.php affects how WordPress operates, so make a backup first and take care to preserve the file’s existing formatting. A syntax mistake can prevent a site from loading. If you do not have file access or are not comfortable making the change, ask your developer or hosting provider for help.
Enabling Media Trash does not recover files that were permanently deleted before the setting was turned on. It changes how future deletions are handled. For a multisite installation, a plugin-managed site, or a site with custom code, the setting may be managed differently, so check with the person responsible for the installation.
What Happens to a File in Media Trash?
When an attachment is moved to Trash, it is no longer treated like an active item in the Media Library. While it remains in Trash, it can generally be restored or permanently deleted. The associated file is normally retained until the item is permanently deleted, but do not treat Trash as a long-term backup. Plugins, custom code, or hosting processes may affect how media is handled.
Once an item is permanently deleted, WordPress removes the attachment record and may remove the uploaded file and generated image sizes from the server. Recovery may then require a backup or assistance from your host. The precise result can depend on how the site is configured and whether the file is referenced elsewhere.
Because a media attachment can be used in more than one place, take care before deleting it permanently. An image might appear in a blog post, a featured-image field, a page builder, or a plugin setting. Deleting the file can leave a broken image wherever that attachment is used.
Why You Cannot Find the WordPress Media Trash
If you expected a Trash folder but do not see one, check these common causes before assuming WordPress has lost your file:
- Media Trash is disabled: This is a common reason there is no Trash filter. Ask your administrator whether the site is configured to move deleted attachments to Trash.
- You are in Grid view: Switch to List view and look for the filter links above the table.
- The item was permanently deleted: If the site did not have Media Trash enabled when you deleted it, there may be no dashboard recovery option.
- You are checking the wrong screen: The standard post Trash is under the relevant Posts or Pages screen. It is separate from the Media Library.
- Your account has limited permissions: User roles and security plugins can restrict which media items or actions you can see.
- A plugin or theme changes the interface: Media-management tools may replace, rename, or reorganize the standard Library controls.
Also check whether the file is simply hard to locate. Use the Media Library search field, inspect the appropriate media type filters, and confirm that you are signed in to the correct WordPress site. On a multisite network, each site has its own Library, so the file may belong to a different site in the network.
Can You Recover Permanently Deleted Media?
If an attachment is not in Media Trash, your best recovery option is usually a recent backup. Contact your hosting provider or site administrator and ask whether a backup is available from before the deletion. A full restore may affect changes made since that backup, so ask whether the host can recover only the missing upload or provide the file separately.
Check any off-site copies as well. The original image may still exist on your computer, in a shared drive, or in an image-editing service. If the file was uploaded to a content delivery network or external storage plugin, check that service too. A copy of the image can be uploaded again, although WordPress may assign it a new attachment record and URL.
Do not rely on the browser cache as a dependable recovery method. A cached image might still appear temporarily on a device, but it is not a substitute for the original file or a site backup. If the image is important, restore it from a trustworthy source and check the pages that use it afterward.
How to Avoid Losing Media in the Future
Before deleting an attachment, check whether it is used on your site and whether you have another copy. Consider enabling Media Trash so accidental deletions can be reversed, and keep regular backups of both your WordPress files and database. The uploads folder contains media files, while the database stores attachment information and site content; a useful backup plan should account for both.
Use clear file names and keep original copies in a separate, organized location. If several people manage the site, establish a simple rule: confirm that a file is unused before permanently deleting it. For a large Library, a media-management plugin may help identify usage, but review its features and make a backup before changing your workflow.
Conclusion
The WordPress Media Trash, when enabled, is found under Media > Library, usually as a filter in List view. If you do not see it, Media Trash may be disabled, the item may have been permanently deleted, or your site’s interface may have been customized. Check the Library views and site settings first, then ask your host about backups if the file is missing. Enabling Media Trash and maintaining regular backups can make future media deletions much easier to recover.