Yoast SEO: Search Index Purge

Remove attachment URLs from Google's index as fast as possible to prevent thin content penalties.

Author:Team Yoast (profile at wordpress.org)
WordPress version required:5.5
WordPress version tested:5.6.1
Plugin version:1.1.0
Added to WordPress repository:30-05-2018
Last updated:10-12-2020
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:46
Rated by:12
Plugin URI:https://wordpress.org/plugins/yoast-seo-searc...
Total downloads:94 419
Active installs:10 000+
plugin download
Click to start download

The purpose of this SEO plugin is to purge attachment URLs out of Google’s index as fast as possible. This helps sites
that might have suffered from having too many thin content pages in the search index by removing them in the fastest
way possible.

What does this plugin do?

This plugin makes all your attachment URLs return an HTTP 410 status. It then creates an XML sitemap with a recent last
modified date, containing all those URLs. The XML sitemap with recent post modified date makes Google spider all those
URLs again. The 410 status code makes sure Google takes them out of its search results in the fastest way possible.

With a nice trick, we also show end users the actual attachment image, so the user experience is not as poor as when
they see an error page.

Yoast SEO required

This plugin is an extension to Yoast SEO. It requires it to work.

How long should you run this plugin?

After 6 months the attachment URLs should be gone from the search results. If you then remove the plugin, and keep
Yoast SEO’s redirect setting on “Yes”, you have the best long term behavior for attachment URLs: to redirect to the
actual attachment.

Does Google condone this?

This method has been discussed with and OK’d by Google.

From within WordPress

  1. Visit ‘Plugins > Add New’
  2. Search for ‘Yoast SEO: Search Index Purge’
  3. Activate Yoast SEO: Search Index Purge from your Plugins page.
  4. Go to “after activation” below.

Manually

  1. Upload the yoast-seo-search-index-purge folder to the /wp-content/plugins/ directory
  2. Activate the Yoast SEO: Search Index Purge plugin through the ‘Plugins’ menu in WordPress
  3. Go to “after activation” below.

After activation