Check 13.22 · Content and editorial strategy

Remove useless content after analysis

Remove pages with no value the right way: checks before deletion, choosing between 301, noindex, 404 and 410, setup for each environment, then monitoring.

Priority
Critical
Difficulty
Intermediate
Estimated time
2 h to 1 day
Free, no account: your progress is saved in this browser.

Ask an AI to check this point on your site

Opens the assistant with a ready-made question: this check, its goal and your site URL.

For Gemini, Copilot or another assistant, copy the question. The link opens the chosen service directly: nothing goes through this site.

In short

Some pages no longer have a reason to exist: an expired offer, news with no lasting interest, a thin article, a discontinued product with no equivalent. After a page-by-page analysis, you remove them the right way: a 301 redirect if there is an equivalent, noindex if the page still serves visitors but not search, a 404 or 410 response otherwise. Once the task is done, the site no longer publishes useless pages, and no useful or linked page has disappeared by mistake.

Why it matters

A single useless page does not cost much. By the hundreds, they dilute the site: visitors land on an expired offer, search engines crawl URLs with no value, and the overall impression suffers. Google assesses quality site-wide for some aspects, and its guidelines ask whether content was created primarily for people.

Removal is not a ranking technique. Google says in its guide on helpful content that removing a lot of old content mainly to seem fresh does not help. The gain comes from pages removed because they served nobody, after checking.

The technical mechanism is simple. Google states that, for Search, an already indexed URL that returns a 4xx code, 404 or 410, is removed from the index, and that the crawl frequency of that URL gradually decreases. Both codes are treated the same way. A 301 redirect, on the other hand, passes the signals on to the target page.

What it improves

  • Visitor experience Fewer expired offers and thin pages in search results and navigation.
  • Perceived quality of the site An indirect effect that cannot be measured directly.
  • Crawling Fewer useless URLs to crawl. Noticeable only on large sites.
  • Maintenance Fewer pages to monitor, update and translate.
  • AI answers Fewer outdated pages that an assistant might repeat. A plausible effect.
  • Rankings No guaranteed direct effect. Deleting in bulk without analysis can, on the contrary, lose traffic and links.

How to check

Test the response code of a removed page:

curl -s -o /dev/null -w "%{http_code}\n" https://example.com/blog/promo-noel-2021/

Expected result: 410 or 404, or 301 to an equivalent. A 200 with a “This page no longer exists” message is a soft 404: the page looks deleted but remains indexable. See fix soft 404s (opens in a new tab).

For a page set to noindex:

curl -s https://example.com/blog/archives-2019/ | grep -i -o '<meta name="robots"[^>]*>'

Expected result: <meta name="robots" content="noindex">, or an X-Robots-Tag: noindex header. The page must not be blocked in robots.txt, otherwise the search engine never sees the directive.

In Search Console, the Page indexing report lists non-indexed URLs by reason (“Not found (404)”, “Excluded by ‘noindex’ tag”): removed pages should appear there over the following weeks.

How to implement

Step 1 — Confirm that the page is useless

Start from the inventory in the task identify outdated and redundant content (opens in a new tab). For each page that is a candidate for removal, check:

Check Where Threshold that rules out outright deletion
Visits from all sources over 12 months Google Analytics, Matomo Regular visits, whatever the source
Organic clicks over 12 months Search Console, Pages tab Regular clicks
Referring domains Search Console, Links report, Ahrefs Webmaster Tools At least one link from a quality site
Conversions Analytics, CRM At least one attributed conversion
Internal use Support, sales, emails, ads Page used in a journey
Legal obligation Legal team Terms of a past offer, product recall, regulatory information

Set your thresholds in writing before you start. They are internal conventions, not search engine rules. Pages that receive links are listed in identify pages that earn backlinks (opens in a new tab).

Step 2 — Choose the exit

Situation Exit Code or directive
The topic is still useful, the page is weak Improve, do not remove 200
Another page covers the same need Merge (opens in a new tab), then redirect 301
A close equivalent exists (replacement product, new edition of a guide) Redirect to the equivalent 301
The page serves visitors but not search (archives, terms of a past offer) Keep online, remove from the index noindex
No equivalent, no use, no links Delete 410 or 404

Do not redirect to the homepage or a general category for lack of an equivalent: Google often treats these redirects as soft 404s. See avoid redirecting all removed pages to the homepage (opens in a new tab).

Google makes no difference in how it handles 404 and 410. A 410 explicitly says the removal is intentional, which makes logs and reports easier to read. Choose one or the other and stay consistent. The details are in return 404/410 for removed content with no equivalent (opens in a new tab).

Step 3 — Archive before removing

Export the content of each removed page (text, images, date, URL) to an archive folder or a CMS export, with the date and the reason for removal. A removal can be undone in a few minutes if the content has been kept, and it serves as evidence if a legal question arises. See keep a history of changes (opens in a new tab).

Apache

Versions Apache 2.4.

To return a 410, in the .htaccess file at the root or in the <VirtualHost> block:

RedirectMatch gone ^/blog/promo-noel-2021/?$
RedirectMatch gone ^/blog/jeu-concours-ete-2020/?$

ErrorDocument 410 /erreurs/410.html

On WordPress, place these lines above the # BEGIN WordPress block. For a static page, deleting the file is enough to get a 404.

Nginx

Versions Nginx 1.24 and later; return, map and error_page are written the same way in all maintained versions.

In the site's server block:

location = /blog/promo-noel-2021/ {
    return 410;
}

location = /blog/jeu-concours-ete-2020/ {
    return 410;
}

error_page 410 /erreurs/410.html;

For a long list, a map saves you from multiplying blocks:

map $uri $contenu_retire {
    default                         0;
    /blog/promo-noel-2021/          1;
    /blog/jeu-concours-ete-2020/    1;
}

server {
    # … existing configuration …

    if ($contenu_retire) {
        return 410;
    }
}

The map goes in the http block, for example in /etc/nginx/conf.d/contenus-retires.conf. Test and reload with sudo nginx -t && sudo systemctl reload nginx.

WordPress

Versions WordPress 6.4 to 7.1; Redirection, Rank Math, Yoast SEO and Yoast SEO Premium plugins in their November 2026 versions.

  • Delete (404): move the post to the trash. Its URL responds with a 404; by default, the trash is emptied automatically after 30 days.
  • Return a 410: with the Redirection plugin (Tools > Redirection > Add new redirection), choose an error action and the 410 code; Rank Math (Redirections module) and Yoast SEO Premium also offer a “410 Content Deleted” type.
  • Noindex: in the editor sidebar, in your SEO plugin's panel. Yoast SEO: Advanced tab, set “Allow search engines to show this content in search results?” to “No”. Rank Math: Advanced tab, Robots Meta, tick “No Index”.

Also remove the page from menus and widgets: WordPress does not always do this on its own.

Shopify

Versions Shopify admin, all plans, November 2026.

Deleting a page, a blog post or a collection makes its URL respond with a 404. For a product, archiving or deleting it removes it from the online store. Shopify does not natively allow you to return a 410.

To keep a page online but out of the index, add this to theme.liquid, inside <head> (Online Store > Themes > … > Edit code):

{% if handle contains 'conditions-offre-noel-2021' %}
  <meta name="robots" content="noindex">
{% endif %}

Replace the value with the handle of the page concerned.

Laravel

Versions Laravel 10 to 13.

With soft-deleted articles (SoftDeletes), return a 410 for a removed article and a 404 for an address that never existed:

use App\Models\Post;
use Illuminate\View\View;

public function show(string $slug): View
{
    $post = Post::withTrashed()->where('slug', $slug)->firstOrFail();

    if ($post->trashed()) {
        abort(410);
    }

    return view('posts.show', ['post' => $post]);
}

Create resources/views/errors/410.blade.php to show a helpful page, with links to related content: Laravel uses it automatically for that code.

Next.js

Versions Next.js 15 and 16, both App Router and Pages Router. The interception file was renamed in Next.js 16.

notFound() returns a 404. For a 410, intercept removed URLs before the page is rendered. With a headless CMS, feed the list from a “removed” field in the CMS rather than hard-coding it.

Next.js 16

Create proxy.ts at the project root (or in src/):

import { NextResponse } from 'next/server';
import type { NextRequest } from 'next/server';

const contenusRetires = new Set([
  '/blog/promo-noel-2021',
  '/blog/jeu-concours-ete-2020',
]);

export function proxy(request: NextRequest) {
  if (contenusRetires.has(request.nextUrl.pathname)) {
    return new NextResponse('This content has been removed.', { status: 410 });
  }

  return NextResponse.next();
}

export const config = {
  matcher: '/blog/:path*',
};

proxy.ts replaces middleware.ts, which is still accepted but deprecated in Next.js 16. The npx @next/codemod@canary middleware-to-proxy . command does the conversion.

Next.js 15

Create middleware.ts at the project root (or in src/):

import { NextResponse } from 'next/server';
import type { NextRequest } from 'next/server';

const contenusRetires = new Set([
  '/blog/promo-noel-2021',
  '/blog/jeu-concours-ete-2020',
]);

export function middleware(request: NextRequest) {
  if (contenusRetires.has(request.nextUrl.pathname)) {
    return new NextResponse('This content has been removed.', { status: 410 });
  }

  return NextResponse.next();
}

export const config = {
  matcher: '/blog/:path*',
};

Step 4 — Clean up around it

Step 5 — Speed things up if it is urgent

Normally, let search engines notice the removal on their next visits. If a page must disappear from the results quickly (incorrect information, personal data), use the Search Console Removals tool. It only hides the URL for about six months: the 404, the 410 or the noindex must be in place for the removal to become permanent. Bing Webmaster Tools offers an equivalent URL blocking tool; see its help.

Step 6 — Monitor

Record the date, the URL, the chosen exit and the reason in the log. A month later, check in Search Console that the removed pages show as not indexed, and in Analytics that overall traffic has not dropped beyond the removed pages. An unexpected drop signals a useful page deleted by mistake: restore it from the archive.

Common mistakes

  • Deleting based on organic traffic alone: the page may have been used by support, sales or a campaign.
  • Deleting a page that receives links without redirecting it to an equivalent.
  • Redirecting all removed pages to the homepage: a likely soft 404 and a lost visitor.
  • Showing “page deleted” with a 200 code: the page remains indexable.
  • Blocking removed URLs in robots.txt: the search engine no longer sees the 404 or the noindex, and the URL can stay in the index.
  • Relying on the removal tool: it is temporary.
  • Deleting without an archive: there is no going back.

Frequently asked questions

Should you return a 404 or a 410 error for a deleted page?

Both work for a deleted page with no equivalent. Google says it treats 404 and 410 codes the same way: an already indexed URL that returns them is removed from the index, then crawled less and less often. A 410 explicitly says the removal is intentional, which makes logs and reports easier to read. Choose one of the two and apply it consistently.

Does deleting pages with no traffic improve SEO?

Not automatically. Google says that removing a lot of old content to seem fresh does not help rankings. Deleting a page with no organic traffic can even lose external links or a use outside search. The gain comes from pages removed because they serve nobody, after checking visits, links, conversions and legal obligations, and from a removal done with the right HTTP code.

When should you use noindex rather than delete a page?

Use noindex when the page still serves visitors but has no place in search results: archives, terms of a past offer, a thank-you page. It remains accessible through navigation and links, but search engines drop it from their index. Delete it only if it no longer serves anyone. In both cases, do not block the URL in robots.txt.

How long does it take for a deleted page to disappear from Google?

A deleted page disappears from Google the next time the crawler visits the URL, which takes anywhere from a few days to several weeks depending on how often the page is crawled. In an emergency, the Search Console Removals tool hides it quickly, but only for about six months: the 404 or 410 response or the noindex tag must be in place for the removal to be permanent.

Updated on

Topic checklist (PDF)

And now?

In the “Content and editorial strategy” topic

  1. Meet search intent
  2. Provide original value
  3. Bring in real expertise
  4. Avoid generic content and filler
  5. Avoid unnecessarily long introductions
  6. Cover the essential questions
  7. Explain concepts and terms
  8. Provide examples and practical cases
  9. Add useful original illustrations
  10. Include verifiable data
  11. Cite primary sources
  12. Check figures and dates
  13. Address objections
  14. Present benefits, limitations and alternatives
  15. Define an editorial line and style guide
  16. Set up an editorial review process
  17. Review AI-generated content
  18. Create an editorial calendar
  19. Identify outdated and redundant content
  20. Merge competing content if relevant
  21. Update high-performing content
  22. Remove useless content after analysis
  23. Update links and references
  24. Display actual publication and update dates
  25. Match length to complexity