WordPress Basics

How to Restore a Deleted Post or Page in WordPress

Deleting a post or page by accident feels terrible, especially when the content took hours to write. The good news is that WordPress rarely deletes content immediately. In most cases, a deleted post or page goes to the Trash first, where it sits for up to 30 days and can be restored with two clicks. Even when the Trash has been emptied, you may still recover the content from revisions, from a backup, or from a cached copy elsewhere on the web. The method that works depends on how the content was deleted and how much time has passed, so the key is to act calmly and to try the easiest methods first. This guide walks you through every way to restore a deleted post or page in WordPress, in the order you should try them, and it finishes with what to do when a post is permanently gone, plus simple habits that prevent this panic in future.

How Do You Restore a Post or Page From the Trash?

When you click Trash on a post or page in WordPress, WordPress does not erase it. It moves the item to a Trash folder and marks it as trashed, while keeping all of its content, its images, and its settings in the database. To restore it, go to Posts and then All Posts, or Pages and then All Pages, depending on what you deleted, and click the Trash link at the top of the list. Find the item in the Trash list, hover over its title, and click Restore. WordPress immediately returns the item to Published or Draft status, exactly as it was before deletion, including its categories, tags, featured image, and custom fields in most cases. If you deleted several items, you can select them all with the checkboxes and choose Restore from the bulk actions dropdown, then click Apply. That is the whole process, and it takes less than a minute when the item is still in the Trash.

There are two limits to know. First, WordPress automatically empties the Trash after 30 days by default, so an item trashed a month ago may already be gone. Some hosts or plugins change this period, so check the Trash even if you think too much time has passed, because your site may keep trashed items longer. Second, restoring from Trash returns the item to its status at the moment of deletion. A published post returns as published, and a draft returns as a draft, so check the status after restoring and confirm the post is visible where you expect it. If you cannot find the item in the Trash at all, do not panic and do not create a replacement yet, because creating a new post with the same slug can complicate recovery. Move on to revisions and backups first, as described below.

How Can Revisions Help You Recover Deleted Content?

Revisions are saved copies of a post or page that WordPress creates automatically as you edit. They are most useful when you did not delete the whole post but lost part of it, or when you restored a post from Trash but an older version is missing. To check revisions, open the post or page in the editor and look in the sidebar settings for the Revisions section, which shows how many saved versions exist. Clicking it opens a comparison screen where you can browse earlier versions with a slider or a list, see what changed between versions, and restore any version with one click. Restoring a revision replaces the current content with that older version, so it is a good safety net for accidental edits, pasted over text, or content removed by mistake during an editing session.

Revisions do have limits, and it helps to know them before you rely on them. If the entire post was permanently deleted from the Trash, its revisions are usually deleted with it, so revisions cannot rescue a post that no longer exists at all. Revisions also do not include every change if your site limits how many revisions it keeps, which some performance guides recommend. Still, checking revisions costs nothing and takes a minute, so it belongs early in your recovery checklist. If revisions do not hold your content, your next and most reliable option is a backup, which is why regular backups matter so much. Our guide on how to backup a WordPress database without a plugin shows a manual backup method you can use even if you have no backup plugin installed.

How Do You Restore a Post From a Backup?

A backup is a complete copy of your site files and database from a particular date, and it is the strongest recovery tool you have. If your host provides automatic backups, log in to your hosting control panel, find the backups section, and look for a backup dated before the deletion. Many hosts let you restore a single file or a database table, while others restore the whole site to that date. A full site restore is powerful but it also rolls back everything changed since the backup date, including newer posts and comments, so use it carefully and only after you understand what will change. A safer approach, when your host or backup tool supports it, is to restore the backup to a staging copy of your site, copy the missing post content from there, and paste it into your live site as a new post. That way you recover the lost content without undoing newer work.

If you have no host backup, check whether a backup plugin on your site stored copies elsewhere, such as in your cloud storage or in a downloads folder, and check whether you ever exported your content from Tools and then Export. An export file contains your posts, pages, and media references, and it can be imported back through Tools and then Import. Even a partial backup helps: a database backup alone contains the post text, even if it does not contain the images, and you can reupload the images afterwards. If you are unsure how to set up a safe place to test a restore, our guide on how to create a WordPress staging site without a plugin explains how to build a test copy where you can restore and inspect content without touching your live site.

What Do You Do After Permanent Deletion?

Permanent deletion means the item has been removed from the Trash, either because you clicked Delete Permanently or because the 30 day period expired. At that point WordPress itself offers no restore button, but you still have three places to check. First, ask your hosting provider whether they hold backups older than your own copies. Hosts often keep daily or weekly backups for a limited window, and support can sometimes restore a single database table or a single post for you, so it is always worth asking before giving up. Second, check the Wayback Machine at web.archive.org for a cached copy of the post URL. If the page was public and was crawled before deletion, you may find a readable snapshot that you can copy back manually, although images and formatting may need rebuilding. Third, check your own records: email drafts, Google Docs, notes apps, or a duplicate copy of the content. Many writers keep a draft elsewhere without realising it, and that copy can save hours of rewriting.

If none of those sources holds the content, the honest answer is that the original is gone, and the best move is to rebuild it rather than keep searching. Rebuilding is faster than it feels, because you usually remember the structure, the main points, and the key examples, even if you do not remember every sentence. Write the new version from memory and from any notes or screenshots you still have, publish it under the same slug if the old URL is free, and check that internal links still point to it correctly. If you had duplicated the page before as a template, that duplicate can also speed up rebuilding, and our guide on how to duplicate a WordPress page without a plugin shows that workflow. Do not pay a random recovery service that promises to restore deleted WordPress content, because once the database row is gone and no backup exists, no tool can magically recreate it.

How Do You Prevent Accidental Deletion in Future?

Prevention is simple, and it turns a future accident into a minor inconvenience. First, set up automatic backups that run at least weekly, and daily if you publish often, and store at least one copy away from your hosting account, such as in cloud storage. Test a restore once, so you know the backup actually works before you need it. Second, be careful with bulk actions in the post list, because it is easy to select the wrong rows and trash several posts at once. Always check the selection count before clicking Apply. Third, limit who can delete content on a multi author site by giving contributors and authors only the roles they need, so a team member cannot permanently delete published posts by accident. Fourth, keep important long posts in an external document as well as in WordPress, so a copy always exists outside the database. Finally, do not empty the Trash in a hurry. Let items sit there for a few days after deletion, because that waiting period is your free undo button, and rushing to empty it removes your easiest recovery path.

  • Check the Trash first, and restore within the 30 day window whenever possible.
  • Check revisions for lost edits, and backups for fully deleted posts.
  • Ask your host about older backups before assuming the content is gone.
  • Check the Wayback Machine and your own drafts for a cached or duplicate copy.
  • Keep automatic offsite backups, and test a restore at least once.

For deeper reading on how WordPress stores posts, revisions, and trash behaviour, the official documentation at developer.wordpress.org is a reliable reference. The main lesson of this guide is about order: Trash first, revisions second, backup third, and external copies fourth. Follow that order calmly, and most deletions turn out to be recoverable, while the few that are not become a prompt to set up the backup routine that protects everything you write next.

Frequently Asked Questions

How long does WordPress keep deleted posts in the Trash?

By default, WordPress keeps trashed posts and pages for 30 days, then deletes them permanently and automatically. Some hosts or plugins change this period, so always check the Trash even if you believe the window has passed.

Can I restore a post after emptying the Trash?

WordPress offers no restore button after the Trash is emptied, but you can still recover from a backup, from a host backup, or from a cached copy such as the Wayback Machine. Without any backup or cached copy, the content cannot be recovered from WordPress itself.

Does restoring from Trash bring back images and categories?

In most cases, yes. Restoring returns the post with its content, featured image, categories, tags, and settings as they were at deletion. Check the restored post once, because media files deleted separately from the media library would need reuploading.

What is the difference between Trash and Delete Permanently?

Trash moves the post to a recoverable folder for up to 30 days, while Delete Permanently removes it from the database right away. Use Trash for anything you might want back, and reserve permanent deletion for content you are certain you will never need.

Last updated: October 2026.

Hostinger - Get 20% OFF

Habib ur Rehman

Hello! I'm the founder of VU Tech Geek. As a BSCS graduate and experienced WordPress professional, I'm passionate about technology and education. My Virtual University journey has given me valuable insights and knowledge, which I love to share with fellow students.… More »

Related Articles

Leave a Reply

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

Back to top button

Adblock Detected

Please consider supporting us by disabling your ad blocker