Technical SEO

How To Flush Pages Out Of Google En Masse

Published: 03.18.15

This column is designed to help SEOs and webmasters fix common SEO problems on their own website.
Want more?  Visit our “How To” section.

Google gives you a few ways to “deindex” pages. That is, kick pages out of their index. The problem is, despite some serious speed improvements in crawling and indexation, they’re pretty slow to deindex and act upon canonical tags.

We know the <meta robots=”noindex”> will punt URLs out of the index, but you have to wait for Google to crawl them. Our server logs show us that Google doesn’t always act quickly even though they crawled the page. So much for directives!

We also know that Google Webmaster Tools has a “remove URL” tool, but the sucker doesn’t let us request bulk removal. Matt Cutts also told us not to “over do it on the removal tool.”

Robots.txt won’t necessarily remove pages from the index.  It only keeps Google from crawling the pages. An uncrawled page can still index. You’ll even see this adorable snippet in most cases:

Robots.txt snippet

Pages with a 404 response will eventually get a page deindexed, but only after Google has come a few times to verify the page is still gone. As they’ve reminded us, “Google has a big memory;” the faster way to remove a page with a response header is using a 410 (page is gone) instead of a 404.

The big problem with all of these methods? They’re ssslllloooooowwwww. Not to mention, some aren’t very scalable.

If you’re doing work and want faster results, I came up with a trick that seems to work a bit faster.

  1. Round Up All The Pages You Want Deindexed
  2. Add The <meta robots=”noindex”> Tag
  3. Create an XML Sitemap with only these URLs
  4. Submit To Google
  5. Wait
  6. Remove The Sitemap When You’re Done

Disclaimer: I can’t prove unequivocally that this trick works. While it seems to show results, (and logically, why shouldn’t it?), I can’t say for certain that the XML sitemap is the driver, and not Google’s natural bot-returns. But even if it doesn’t work, it’s still a great way to monitor the deindexation of files.

Let’s Review The Steps

Step 1 and step 2 are pretty self explanatory. Here’s an example – we recently had a client testing dynamic landing pages. He had no idea that the 30,000 “test” pages he created with a click of a button were available to Google. After seeing a sudden spike in GWT, we caught it – but it was too late. Google had them, and wouldn’t likely forget them as quickly as they learned about them.

In this case it was a fairly simple implementation getting <meta robots=”noindex,nofollow”> on the dynamic template, but these pages were deep in the index. Google had to come back to all 30,000 pages, and that was going to take a long time. We wanted to close the path to these pages so users didn’t find them, which only adds to the time it would take Google to revisit these pages (we’ve severed the crawl path).

In this case there was a unique folder structure – www.client.com/lp/test/dynamicpage1. By letting Screaming Frog crawl the site (and a little prodding to get them to focus on the right location), we were able to gather up all the “text” URLs fairly quickly. If you don’t have a unique URL footprint, perhaps there’s a keyword or piece of unique code that can call these pages out. The custom filter (Configuration > Custom) let’s you breakout pages with a certain keyword anywhere in the source code.

Screaming Frog Custom

It’s possible you’ve crawled many pages outside of just what you were targeting, so you may need a little clean up in Excel. Export and filter in Excel as needed (some of you might be able to set up regex with Screaming Frog’s “include” or “URL rewriting” features to create custom crawls and skip this step). Then simply reupload the now-scrubbed list of URLs using Screaming Frog’s list mode:

Next simply upload your new XML Sitemap. Do yourself a favor and give it a descriptive name. Instantly you’ll see a “submitted” count (blue line). Now you wait.

Submit Sitemap To Google Webmaster Tools

In a few hours you’ll get your first indexation snapshot. Now, I really don’t know how accurate this “red” number is – I tend to take all Google Webmaster Tool’s data with a huge grain of salt. But, it’s the trend we’re really interested in here.

Indexation The Next Day

According to this, of all the pages I don’t want Google to index, they have 81 currently indexed (at least that’s how I read it).

This suggests that Google isn’t necessarily quick to act on the new URLs introduced to them. If they were, I’d have zero indexed pages instead of 81. In other words, Google says, “thanks for the pages – here’s your current indexation data. I’ll take a look at them later…” Why do I believe that?  Simply because the <meta robots=”noindex”> directive that’s on all these pages hasn’t been honored. Now we sit back and watch trend.

Time For A Check In…

It’s been a few days, time to log into Google Webmaster Tools and see how our little project is coming along:

Progress

Unfortunately Google has still not acted on the 81 URLs that are in the sitemap marked with a <meta robots=”noindex”>. Don’t be discouraged – this isn’t uncommon.

Time For Another Check In…

Now it’s been another 4 days, and we’re finally starting to see some activity.  10 pages nixed.

Pages are dropping

And Another Check In…

It’s been another 5 days, and we’re down a few more pages.

Yet Another Check in

Last Check In…

14 days later, and we’re down even more pages. This is working as expected, so I’m going to wrap up this post. I think the trend speaks for itself.

Very Last Checkin

Summary (Last Step)

It’s important to keep watching this. Once you get down to zero pages, clean up your campaign. Remove the sitemap from your site, and remove from Google Webmaster Tools. You’ll notice your index status eventually reflecting this as well. That’s all there is to it!

Bill Sebald
Bill Sebald
Follow me on Twitter - @billsebald

I've been doing SEO since 1996. Blogger, speaker, and teacher at Philadelphia University. I started Greenlane in 2005 to help clients leverage search marketing to hit business goals. I love this stuff.

Read Bio
  • AJ Kohn

    I’ve done this as well and like it, in part, because you actually do get some tracking based on the number of indexed URLs Google reports in GWT.

    Another thing I’ve tried with varying results is to create a page with links to all of those noindex pages. Nothing fancy. No styling. And the page can be an orphan. Then go to GWT, Fetch and after fetching click Submit To Index and select the Crawl this URL and its direct links option.

    To me it’s all about poking the bear as many times as possible to take notice of the pages I want them to crawl and acknowledge the noindex tag.

  • Виктор Столяренко

    As I understand, it doesn’t work. Where in Sitemap.xml I can “marked with a “? It is impossible.

    So, if I have 20 000 pages, that I need to deindex, this method doesn’t work

© 2017 Greenlane. All rights reserved.

2550 Eisenhower Avenue, A203, Eagleville, PA 19403

A Philadelphia SEO and Digital Marketing Agency    Privacy Policy    RSS

Subscribe to our Newsletter