• Skip to main content
  • Skip to footer
HostingWiki

HostingWiki

  • Home
  • Guides
  • About

November 26, 2021 - WordPress

What is WordPress Trash?

Amanda

The WordPress trash functionality stores all deleted posts, pages, and comments from your website. It has a similar function as the Recycle Bin on your PC or Trash on Mac. 

The deleted items remain in the trash folder for 30 days. In case you delete an item by accident, you can restore it during that period. After that, they will be permanently deleted.

Only users with permission to delete WordPress content — like administrators and editors — can access this folder. You can find the trash folders on the admin page of each content type.

Keep reading on this article as I will show you how to access and empty your trash folder as well as restore deleted items. 

How to Empty the Trash in WordPress

Each content type has a designated trash folder. To access it, you need to navigate to the content’s admin page from your WordPress dashboard. 

Let’s assume you want to empty your post’s trash folder. You can do the process by following these steps: 

  1. Go to the Posts admin page, then select the Trash page. 
WordPress posts section with trash button highlighted
  1. Click Empty Trash to remove your posts permanently.
WordPress posts section with empty trash button highlighted

If you want to only remove several posts from your trash folder, you can use the Bulk Actions feature. Here’s how to do it:

  1. On the Trash page, check the box next to the selected posts.
  2. Select the Delete Permanently option from the Bulk Actions dropdown list, then click Apply.
WordPress posts section with two posts selected and delete permanently option highlighted

Alternatively, you can remove an individual post by hovering over it and selecting Delete Permanently link.

WordPress posts section with delete permanently button highlighted

These tutorials also apply for removing pages and comments from their respective trash folder.

How to Restore Items from the Trash

If you accidentally move an item to the trash folder, you can recover it by following the same process as emptying your trash. The only difference is that you select the Restore link from the Bulk Actions dropdown list. 

WordPress posts section with bulk actions expanded and restore option selected

While it’s possible to restore posts, pages, and comments from the trash folder, you cannot recover any deleted media files. Once you remove files from the media library, they are gone for good.

Deleting Media Files

Since the media library has no trash folder, removing an item from the Media admin page will be a permanent action.

To remove media files from your site, you can do the following steps:

  1. Navigate to the Media page from your WordPress dashboard.
  2. Select the file that you want to remove, click Delete Permanently. 
WordPress media with image selected and delete permanently button highlighted
  1. To remove more than one image, click Bulk Select then hit Delete Permanently. 
WordPress media library with a few images selected and delete permanently button highlighted

Conclusion

The WordPress trash functionality stores posts, pages, and comments deleted from your site. Having this folder on your site allows you to restore any content you removed accidentally.

You can access the trash folder from the WordPress admin page of each deletable content type to empty it or restore a deleted item. All files stored in the trash folder will be permanently deleted after 30 days.

I hope this article gives you a better understanding of WordPress trash functionality. If you have any questions, feel free to leave a comment below.

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Footer

HostingWiki Logo

Site Links

  • Contact Us
  • About
  • Sitemap

Legal

  • Privacy Policy
  • Terms of Use
  • Cookie Policy
  • Contact Us
  • About
  • Sitemap

Additional menu

© 2022 HostingWiki is a Hostinger publication.