Delete a Website From Google Index
This example will show you how to remove a website from Google search engine index. This method is very simple and easy to apply. You just need to modify a file called robots.txt in your website root directory.
Create a file called “robots.txt”
The content of the file should be exactly like below (copy and paste into robots.txt)
User-agent: *
Disallow: /
The User-agent refers to the robot which is crawling your website. For example Google, Yahoo or * means all robots which mean it also include Google and Yahoo. You can also use this method to fight spam bots for scrapping your website.
Besides that, you can block directories or individual pages on your site using a robots.txt file instead of blocking the entire website. Add the code below the line User-agent: *
Disallow: /myprivatefolder/
Disallow: /database/
For your information, this method is compatible with all major search engines.
Popularity: 5%



