🔎
Google Search for beginners
Home
  • Introduction
  • Google Search Essentials
    • Overview
    • Google Search Technical Requirements
    • Spam Policies
  • SEO Basics
    • SEO Beginner's Guide
    • How Google Search Works
    • Creating Helpful, Reliable Content
    • Do You Need an SEO Expert?
    • Maintaining Your Website’s SEO
    • Developer's Guide to Google Search
    • How to Get Your Website Listed on Google
  • crawling and indexing
    • Overview
    • File formats Google can index
    • URL structure
    • Links
    • Sitemaps
      • Create and submit a sitemap
      • Manage your sitemaps
      • Image-specific sitemaps
      • News-oriented sitemaps
      • Video sitemaps and alternatives
      • Combining different sitemap types
    • Managing Google Crawlers
      • Reducing the crawl rate of Googlebot
      • Verifying the Googlebot and other Google crawlers
      • Managing Crawl Budget for Large Sites
      • HTTP Status Codes, Network, and DNS Errors
      • Types of Google Crawlers
      • Googlebot Explained
      • Google Read Aloud Service
      • Google API
      • Understanding Feedfetcher
    • Robots.txt
      • Creating and Submitting Robots.txt
      • Updating Robots.txt
      • Google's Interpretation of Robots.txt
    • Canonicalization
      • Specifying Canonicals Using rel="canonical" and Other Methods
      • Resolving Canonicalization Issues
    • Canonicalization for Mobile Sites and Mobile-First Indexing
    • AMP (Accelerated Mobile Pages)
      • Understanding How AMP Works in Search Results
      • Enhancing Your AMP Content
      • Validating AMP Content
      • Removing AMP Content
    • JavaScript
      • Fixing Search-Related JavaScript Issues
      • Resolving Issues with Lazy-Loaded Content
      • Using Dynamic Rendering as a Workaround
    • Page and Content Metadata
      • Meta Tags
      • Using Robots Meta Tag, data-nosnippet, and X-Robots-Tag noindex
      • noindex Explained
      • rel Attributes
    • Removals
      • Removing Pages from Search Results
      • Removing Images from Search Results
      • Handling Redacted Information
    • Redirects and Google Search
      • Switching Website Hosting Services
      • Handling URL Changes During Site Moves
      • A/B Testing for Sites
      • Pause or Disable a Website
Powered by GitBook
On this page
  • Removing AMP Pages from Google Search: A Comprehensive Guide
  • Removal Options:
  • Option 1: Removing All Versions of AMP Content
  • Option 2: Removing Only AMP Pages (Preserving Canonical Non-AMP Pages)
  • Option 3: Removing AMP and Non-AMP Pages Using a CMS
  • Conclusion
  1. crawling and indexing
  2. AMP (Accelerated Mobile Pages)

Removing AMP Content

Removing AMP Pages from Google Search: A Comprehensive Guide

This document provides a detailed guide for web developers on how to remove Accelerated Mobile Pages (AMP) from Google Search. It includes explanations, illustrative examples, and code snippets to help you through the process.

Understanding the Terminology:

  • Canonical Page: The definitive version of a webpage. It can be either an AMP page or a non-AMP page.

  • AMP Page: A lightweight version of a webpage optimized for fast mobile loading.

  • Non-AMP Page: The standard version of a webpage, not specifically optimized for mobile speed.

Page Setup Scenarios:

  1. Canonical AMP: Only one version (the AMP page) exists, serving as the canonical version.

  2. Canonical Non-AMP: Two versions exist: an AMP page and a canonical non-AMP page.

Removal Options:

We will explore three primary methods for removing AMP content:

  1. Removing All Versions: Delete both the AMP and canonical non-AMP pages.

  2. Removing Only the AMP Page: Keep the canonical non-AMP page while removing its AMP counterpart.

  3. CMS-Based Removal: Leverage your Content Management System (CMS) to remove either all versions or only the AMP version.

Option 1: Removing All Versions of AMP Content

This method is the fastest way to remove your AMP content from Google Search. However, it might temporarily display error messages to users until Google fully processes the removal.

Step-by-Step Guide:

  1. Deletion: Delete both the AMP and non-AMP versions of the page from your server or CMS.

    # Example: Deleting files from a server using SSH
    rm /path/to/your/amp-page.html
    rm /path/to/your/non-amp-page.html

Note: A delay occurs between deleting your AMP page and Googlebot recognizing the removal. During this time, users might encounter error messages.

Option 2: Removing Only AMP Pages (Preserving Canonical Non-AMP Pages)

This method allows you to remove only the AMP version while keeping the canonical non-AMP page accessible.

Step-by-Step Guide:

  1. Remove AMP Link: Delete the rel="amphtml" link from the <head> section of your canonical non-AMP page.

    <!-- Before Removal -->
    <link rel="amphtml" href="https://www.example.com/page.amp.html"> 
    
    <!-- After Removal -->
  2. Server Configuration: Configure your server to return either a 301 Moved Permanently or 302 Found redirect for the removed AMP page, pointing to the canonical non-AMP page.

    # Example Nginx Configuration
    location /page.amp.html {
      return 301 https://www.example.com/page.html;
    }
  3. Additional Steps for Non-Google Platforms:

    • HTTP 404: To remove the AMP page from platforms other than Google, configure your server to return a 404 Not Found response for the removed AMP page. This prevents the Google AMP Cache from serving outdated content.

    • Cache Update: Update the Google AMP Cache to reflect the removal.

  4. Verification: Similar to Option 1, verify the removal through Google Search and the AMP status report in Google Search Console.

  5. Optional Permalink Preservation: To keep permalinks active, configure a 301 Redirect from the removed AMP page to the canonical non-AMP page.

Option 3: Removing AMP and Non-AMP Pages Using a CMS

Many CMS platforms offer integrated options for managing and removing AMP content.

Deleting a Single Page:

  1. Access your CMS interface and locate the page you want to delete.

  2. Use the CMS's "unpublish" or "delete" functionality to remove both the AMP and non-AMP versions.

  3. Consult your CMS provider's documentation for specific instructions (e.g., WordPress, Drupal, Squarespace).

Disabling AMP Site-Wide:

  1. Check your CMS provider's documentation or contact their support for instructions on disabling AMP.

  2. Warning: This action removes all AMP pages from your site.

  3. Ensure your CMS redirects users to the canonical non-AMP pages after AMP is disabled.

Conclusion

By following these detailed instructions, you can effectively remove your AMP pages from Google Search while minimizing disruption to your users. Always remember to test thoroughly after implementing any changes and consult your specific CMS documentation for tailored guidance.

PreviousValidating AMP ContentNextJavaScript

Last updated 10 months ago

Removal Request: Use the "Remove Outdated Content" tool in Google Search Console to request the removal of both the AMP and non-AMP URLs.

Cache Update: Update the Google AMP Cache to ensure the removal of your AMP content. You can do this through the "URL Inspection" tool in Google Search Console.

Verification: Verify the removal by searching for your content on Google. For bulk removals, monitor the "Indexed AMP pages" graph in the AMP status report within Google Search Console.