Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I added the no-index tag for the google-bot, but it is kind of taking a long time to de-index some pages since I have over 100k pages I need to de-index lol :)))

What is the proper way to de-index pages using robots.txt?

Thanks!

Any idea how long should it take?

share|improve this question
add comment

2 Answers

Also check URL removal explained, Part I: URLs & directories

As that article suggests, you can remove directories (and whole sites) in Google's Webmaster Tools. This might be quicker than robots.txt initially, although you will need to use robots.txt as well.

Keep the noindex meta tag to avoid your page appearing at all in Google's index. A robots.txt only solution could still allow URL only links from appearing in the SERPS.

Using robots.txt to remove the "http://www.example.com/getridofthis/" directory...

User-agent: *
Disallow: /getridofthis/
share|improve this answer
add comment

Take a look at robotstxt.org has all the info you need.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.