How To Completely Remove WordPress Site From The Internet

How To Completely Remove WordPress Site From The Internet

Have you ever wondered if you can completely delete your WordPress site from the Internet? Just by removing your WordPress installation, your site is not entirely removed from the Internet. It will become unavailable but the remains of your website still exists.

There are several traces of your website on the Internet scattered here and there. In this guide, you will learn how you can completely remove your WordPress site and its content from the Internet.

It is always advised to backup a copy of your website before removing it permanently.

Step 1:

Login into your cPanel using your credentials and locate File Manager. It has all the contents of your WordPress website. Click File Manager and go to the root directory. Delete all the files present there.

How To Completely Remove WordPress Site From The Internet

You can use an FTP client to remove all the files if you don’t have access to your cPanel.

Step 2:

After deleting your website, you need to block search engines from searching your website. To stop the search engines, you need to create a robots.txt file inside your File Manager which will tell search engines not to look for your site. Add the following lines in the file:

User-agent: *
Disallow: /

The above lines will disable crawlers from accessing URL which falls in your domain name.

Step 3:

Next step, you need to tell that your website’s content is no longer available in the internet. For that, you need to strictly communicate to search engines using the following codes in the .htaccess file. First, create a .htaccess file in the root directory of your website using File Manager or FTP client.
Add the following line of codes to your .htaccess file.

RewriteEngine On
RewriteCond %{REQUEST_URI}  !^/robots.txt
RewriteCond %{HTTP_HOST}  ^www.example.com$ [NC]
RewriteRule  ^(.*)$ - [L,G]

Here, example.com is your domain name. This code will redirect and show 410 error to all the incoming requests.

Conclusion:

That’s it. You’ve learned how you can completely remove a WordPress site from the internet.

Check out these top 3 WordPress hosting services:

A2 Hosting
$2.99 /mo
Starting price
Visit A2 Hosting
Rating based on expert review
  • User Friendly
    4.5
  • Support
    4.0
  • Features
    4.5
  • Reliability
    4.8
  • Pricing
    4.0
IONOS
$1.00 /mo
Starting price
Visit IONOS
Rating based on expert review
  • User Friendly
    4.5
  • Support
    4.0
  • Features
    4.5
  • Reliability
    4.5
  • Pricing
    4.3
HostArmada
$2.49 /mo
Starting price
Visit HostArmada
Rating based on expert review
  • User Friendly
    4.5
  • Support
    4.5
  • Features
    4.5
  • Reliability
    4.5
  • Pricing
    4.0

How to Configure WordPress Page Caching

A savvy website owner understand how important it is to have a website with a qu
4 min read
Avi Ilinsky
Avi Ilinsky
Hosting Expert

How to Secure Your WordPress Website

Millions of websites get hacked every year and many people consider WordPres
5 min read
Eliran Ouzan
Eliran Ouzan
Web Designer & Hosting Expert

How To Create a WordPress Child Theme

Customizing your WordPress theme but want to be extremely safe? Don’t worry. W
3 min read
Michael Levanduski
Michael Levanduski
Expert Hosting Writer & Tester

How to Fix File and Folder Permissions Errors in WordPress

It's so frustrating when you receive an error while updating your website. File
4 min read
Max Ostryzhko
Max Ostryzhko
Senior Web Developer, HostAdvice CTO
HostAdvice.com provides professional web hosting reviews fully independent of any other entity. Our reviews are unbiased, honest, and apply the same evaluation standards to all those reviewed. While monetary compensation is received from a few of the companies listed on this site, compensation of services and products have no influence on the direction or conclusions of our reviews. Nor does the compensation influence our rankings for certain host companies. This compensation covers account purchasing costs, testing costs and royalties paid to reviewers.
Click to go to the top of the page
Go To Top