Go straight to the answers
Vega SEO Talks

Why does blocking a URL path in robots.txt not remove already-indexed pages, and what is the correct multi-step deindexing workflow?

Answered 3-minute answer rooted in 2 pages

Because robots.txt controls crawling, and removal from the index needs a signal Google can only read by crawling. Google’s noindex documentation spells out the conflict: “If the page is blocked by a robots.txt file or the crawler can’t access the page, the crawler will never see the noindex rule, and the page can still appear in search results, for example if other pages link to it.” Blocking first freezes the page in whatever state Google last saw. The working order is the reverse: let Google crawl the page and see noindex or a 404, confirm it has left the index, and only then block crawling if you still want to.

The workflow

Step Action Why
1 Make sure the URLs are not blocked in robots.txt Google must crawl them to see the next signal
2 Add noindex (meta tag or X-Robots-Tag header), or return 404 or 410 if the content is gone This is the removal signal
3 Optional: submit a Removals request for urgent cases Hides the URL quickly while step 2 takes effect
4 Wait for recrawl; check with URL Inspection and the Page indexing report Confirms Google saw the signal
5 Only then, add a robots.txt disallow if you want crawling to stop Crawl management, after removal

Sources: Google’s noindex documentation and Removals tool help.

Notes on each step

  • Noindex in robots.txt does not exist for Google. Its documentation says specifying noindex in robots.txt is not supported; the rule has to be on the page or in the HTTP header.
  • 404 or 410 also removes. For content that is gone, a 4xx response removes indexed URLs without needing noindex.
  • Removals is temporary. Google’s help says a successful request lasts only about six months, and Google can keep crawling the URL during that time; the permanent signal is still noindex or a 4xx.
  • Speed. Requesting indexing in URL Inspection can prompt a recrawl of important URLs; for large sets, a sitemap listing the URLs with an updated lastmod helps Google find the change.

If you already blocked first

Remove the disallow for those paths, add noindex or the 4xx response, let Google recrawl and drop the pages, then restore the disallow if you need it. There is no way for Google to act on a signal it is blocked from reading.

A worked example

For example, imagine a site that disallows /promo/ to clear old campaign pages from results. Months later the pages still appear, with almost no description, because external links keep them known and Google cannot crawl them. Lifting the disallow, returning 410 for the expired pages and waiting for the recrawl removes them; the disallow goes back afterward for any promo paths that should stay uncrawled.

Robots.txt cannot remove indexed pages because it stops Google from crawling the signals that do, so deindexing runs in the order crawlable page, noindex or 404, confirmed removal and only then an optional robots.txt block.

Answers that share these roots

  1. What is the most effective phased strategy for deindexing 200K+ low-quality pages without triggering a site-wide crawl rate disruption? shares 1 page
  2. Why does noindexing thin pages sometimes hurt rankings more than leaving them indexed, and how do you determine which approach is safer? shares 1 page
  3. Why does including noindexed URLs in an XML sitemap send conflicting signals, and how does Google resolve this conflict? shares 1 page

Replies to this answer

Leave a Reply

Your email address will not be published. Required fields are marked *