InfoPhilicHow toHow to Properly Delete a WordPress Post or Page?

How to Properly Delete a WordPress Post or Page?

You sometimes want to delete a page from your site for many reasons. When you take a step forward, you are going to remove that URL too. But when visitors visit that URL, it usually throws a 404 not found error.

That’s not what you want. In this guide, I will explain the choices you have and how to make them.

First, decide whether you really want to delete a page that has a proper equivalent on your site or you want to redirect it.

I recommend creating a redirect of the page even when only a smaller part of the visitors would benefit from that redirect. It is always a good alternative if the other option is for all your visitors to get a page saying ‘content not found’.

When you redirect that deleted page URL to another URL, make sure the redirect you use is a so-called 301 redirect. By doing so, Google and other search engines will assign the link value of the old URL to the URL you redirected the visitors to.

If you still wanna delete the page, let’s move further to know more about it.

First of all, take a backup of your site. This backup will come in handy if you ever want to restore your website. For the backup,

  • Go to your dashboard >> Tools >> Export section
Export content tool in WordPress dashboard
The export content tool in the WordPress dashboard

The Download Export File button will export all your posts, pages, categories, tags, comments, etc.

It will not back up your media files and uploads. For that, you will need to click on Media and manually download all your files.

Now, let’s move toward the main process.

If you wish to delete a WordPress page or post,

  • For posts, go to Posts >> All Posts and for pages, Go to Pages >> All pages.
  • Move your cursor to the post or page that you want to remove.
Deleting single post in WordPress
Deleting a single post in WordPress

It will appear some options including Edit, Quick Edit, Trash, and View.

  • Select Trash.

This will move the Page/Post to the Trash.

  • You will see the notification on the top of the page ‘selected post or page moved to the trash’.

For bulk delete, you can use the bulk action tool to perform the operation. Refer screenshot below.

Deleting posts using bulk action in WordPress
Deleting posts using bulk action in WordPress

After that, you can permanently delete it or even restore it by visiting the Trash section which appears at the top of the screen.

Restore or permanently delete post in WordPress
Restore or permanently delete the post in WordPress

Once you visit it, you will see the previously trashed item. Moving the cursor on it appears two options named ‘Restore‘ or ‘Delete Permanently‘.

If you decide to delete permanently, make sure you send the proper HTTP header: a 410 content deleted header. 410 means “content deleted” and is thus more specific. If a URL returns a 410, Google is far more certain you removed the URL on purpose and it should, therefore, remove that URL from its index. This means it will do so much quicker.

Redirects in Yoast SEO plugin
Redirects in Yoast SEO plugin

Yoast Premium offers the best way to do this. It includes a redirects manager that serves 410 headers and automatically asks you what you want to do with a certain URL when you delete it or change the permalink.

That’s all about deleting a WordPress page or post. Hope you find the guide helpful. You might like to read my other guide to Setting up the Perfect WordPress SEO Permalink Structure.

You'll also like:
Continue to the category
Amit Malewar
Amit Malewarhttps://www.infophilic.com/
Amit Malewar has been the tutorial writer since 2013. His passion for helping people in all aspects of technology flow through the expert coverage he provides. In addition to writing for InfoPhilic, Amit loves to read and try new things.

Comment Policy: Your words are your own, so be nice and helpful if you can. Please, only use your real name and limit the amount of links submitted in your comment. We accept clean XHTML in comments, but don't overdo it please.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

GET STARTED
DEALS

Dreamhost Hosting

DreamPress comes pre-installed and pre-configured with WordPress making it easy to get up and running. It provides simple management to save you time.
spot_img