# Remove useless content after analysis

- Check 13.22 · Content and editorial strategy · Critical
- Source: https://checklist-seo-geo.com/en/content-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.
- Updated on 2026-11-25
- Licence: CC BY 4.0. Credit “Checklist SEO & GEO” with a link to https://checklist-seo-geo.com/en/content-editorial-strategy/remove-useless-content-after-analysis.
- Plugin checklist-seo-geo: 1.3.1 · https://github.com/maximegaul/checklist-seo-geo

## 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:

```bash
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](https://checklist-seo-geo.com/en/indexing-canonicalization/fix-soft-404s).

For a page set to noindex:

```bash
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](https://search.google.com/search-console/index) 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](https://checklist-seo-geo.com/en/content-editorial-strategy/identify-outdated-redundant-content). 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](https://search.google.com/search-console/links), 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](https://checklist-seo-geo.com/en/internal-linking/identify-pages-that-earn-backlinks).

### 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](https://checklist-seo-geo.com/en/content-editorial-strategy/merge-competing-content-if-relevant), 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](https://checklist-seo-geo.com/en/http-redirects/avoid-redirecting-all-removed-pages-homepage).

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](https://checklist-seo-geo.com/en/http-redirects/return-404-410-removed-content-no-equivalent).

### 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](https://checklist-seo-geo.com/en/automation-quality-control/keep-history-changes).

### Apache

Versions: Apache 2.4.

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

```apache
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:

```nginx
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:

```nginx
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`):

```liquid
{% 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:

```php
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/`):

```ts
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/`):

```ts
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

- **Internal links**: remove or replace every link to a removed page. A crawl shows them: Screaming Frog's Response Codes tab, Client Error (4xx) filter, then Inlinks. See [fix broken links](https://checklist-seo-geo.com/en/internal-linking/fix-broken-links).
- **Sitemap**: removed or noindexed URLs come out of it. See [exclude redirects, errors and noindex pages](https://checklist-seo-geo.com/en/crawling/exclude-redirects-errors-noindex-pages).
- **Menus, footers, RSS feeds, automated email campaigns**: check that none of them points to a removed page.
- **Robots.txt**: do not block removed URLs; the search engine must be able to see the 404, the 410 or the noindex.

### 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](https://search.google.com/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.

## Resources

- [Google Search Central: How HTTP status codes affect Google Search](https://developers.google.com/search/docs/crawling-indexing/http-network-errors?hl=en)
- [Google Search Central: Remove a page hosted on your site from Google](https://developers.google.com/search/docs/crawling-indexing/remove-information?hl=en)
- [Search Console Help: Removals tool](https://support.google.com/webmasters/answer/9689846?hl=en)
- [Google Search Central: Block Search indexing with noindex](https://developers.google.com/search/docs/crawling-indexing/block-indexing?hl=en)
- [Apache: mod_alias, RedirectMatch directive](https://httpd.apache.org/docs/2.4/mod/mod_alias.html#redirectmatch)
- [Nginx: map module](https://nginx.org/en/docs/http/ngx_http_map_module.html)
- [Laravel: error handling and custom error pages](https://laravel.com/docs/errors#custom-http-error-pages)
- [Next.js: proxy.js](https://nextjs.org/docs/app/api-reference/file-conventions/proxy)

Next steps: [return 404/410 for removed content with no equivalent](https://checklist-seo-geo.com/en/http-redirects/return-404-410-removed-content-no-equivalent) and [create a helpful 404 page](https://checklist-seo-geo.com/en/http-redirects/create-helpful-404-page).
