Need to find out how to delete a page from your website? This WordPress tutorial shows you how to do it.

Whenever you delete a page (or post) from your website, you also delete one or more URLs. This old URL, when visited, usually returns a erreur 404, which is not the best thing for Google or your users.

You can redirect that deleted page to another page, or perhaps - if you really want content to disappear from your website - serving a header 410 message would actually be a better idea. This post explains the choices you have and how to implement them.

But first, if you've never installed WordPress, find out How to Install a WordPress Blog in 7 Steps et How to search, install and activate a WordPress theme on your blog 

Then back to why we are here.

Redirect or delete a page?

The first thing you need to determine is whether or not the content you deleted has an equivalent elsewhere on your website. Think of it this way: if I clicked on a link to the page you deleted, Is there another page on your website that gives me the information I'm looking for? 

Also check out our ultimate guide to Keyword research for SEO

If this is true for most of the people who follow the link, you should redirect the deleted URL to the alternate page. In general, we recommend that you redirect to a page even if only a handful of visitors would benefit from it.

Create a redirect

There are several types of redirects, but one 301 redirection is what is called a permanent redirect, and it is what you should use when redirecting that deleted page url to another url. Using a 301 redirect means that Google and other search engines will assign the link value from the old URL to the URL you redirected your visitors to.

See also our article on 5 WordPress plugins to improve blog redirects

Complete removal of content

If there really isn't an alternate page on your website with this information, you must ask yourself whether it is better to delete it or keep it and improve it instead. But if you are absolutely sure you want to remove it, make sure to send the correct HTTP header.

HTTP Status 404 and 410

The difference between a 404 status and a 410 is simple: 404 means "content not found", 410 means "content removed" and is therefore more specific. If a URL returns a status of 410, Google knows for sure that you deleted the URL on purpose, and it should therefore remove that URL from its index much sooner.

Collateral damage when deleting a page

When you delete one or more articles or pages from your website, there is often collateral damage. Suppose you have deleted all articles from your website that have a specific tag. Since this tag is now empty, its archive URL will also give a 404 error.

Read also: How to copy and paste text in WordPress without formatting issues

Even if you correctly handle all the article URLs you have deleted (by redirecting them or giving them a 410 status), the tag archive will still result in a 404, so you need to be sure to deal with that URL.

Other additional premium WordPress plugins 

Also discover other WordPress plugins premium that optimize the performance of your WordPress blog or website.

1. Premium SEO Pack

Premium SEO Pack is a WordPress Plugin which optimizes your SEO and compresses CSS to improve the loading speed of your website. The plugin also allows you to manage the design of your website in a few clicks.

Premium seo pack - wordpress plugin

Its functionalities are among others: compression of CSS and JS, video sitemap integration and snippet, the formatting of HTLM and XML files, redirection of 404 and 301 pages, sharing on social networks, providing the ALT label, highly customizable layout.

Download | Demo | Web hosting

2. WordPress Comment Rating Plugin

It's about a comment evaluation system. It allows you to let users rate different comments. They will just have to click on the preview button and scroll down to the comments section to see the plugin in action.How WordPress Plugin Rating

In its functionalities we find mainly: ease of use, support for custom icon colors, ranking comments according to the notes, the customization of the size of the icons, custom CSS support, IP encryption (for European users), the possibility to translate this plugin and more.

Download | Demo | Web hosting

3. SEO Category and Tag Descriptions for WooCommerce

Improving the SEO of your store by using associated categories is one of the features of the WooCommerce premium Advanced Categories plugin. Woocommerce advanced seo categories wordpress plugin

It will allow you to improve user experience by allowing you to take full control of the layout of the categories.

Its features include: 15 different styles to choose from, different preception age, a customizable background, customization of the store's home page and others.

Download | Demo | Web hosting

Recommended Resources

Find out about other recommended resources to help you build and manage your website.

Conclusion

Here ! That's it for our article that shows you how to properly delete a page from your website. If you have comments or suggestions, do not hesitate to let us know in the reserved section.

However, you can also consult our resources, if you need more elements to carry out your projects of creation of Internet sites, by consulting our guide on WordPress blog creation or the one on Divi: the best WordPress theme of all time.

But meanwhile, share this article on your different social networks

...