30 days free. No credit card. Full access from the moment you connect your site.

Start free trial

Delete Rank Math Redirections

rank-math/delete-redirections permanently deletes redirections by ID. It refuses without confirm: true.

Prefer trashing. It does the same job and can be undone.

Before you run it

The rules and their hit history are unrecoverable, and any URL currently relying on one starts returning 404 the moment this completes — including URLs on other people’s sites that link to yours. rank-math/change-redirection-status with action=trash has the same effect and reverses in one call.

At a glance

Abilityrank-math/delete-redirections
ToolsetRank Math — toolset/rank-math
GroupRank Math › Redirections & 404s
RequiresRank Math SEO, active on the site
Capabilitymanage_options
SafetyDestructive — deletes stored values, and refuses to run without confirm: true
RepeatableIdempotent — running it twice leaves the same result
Ships inAcrossAI Abilities Manager 0.0.34 and later

How it works

A redirection is a promise to everyone who ever linked to the old URL. Deleting it breaks that promise for links you cannot see and cannot fix — the inbound links on other sites, the bookmark somebody made, the citation in a document.

The hit count is the evidence for whether that matters, and it goes with the rule. Once deleted, there is no way to establish whether a URL was still being used.

So read the hit counts first. A rule with zero hits in a year is genuinely safe to remove; one with hundreds is doing real work regardless of how old it looks.

The legitimate case for permanent deletion is a rule that was wrong — a redirect created with a bad pattern that is catching URLs it should not. That one should go, and trashing it first still works.

Idempotent: deleting an ID that is already gone is a no-op.

Input

NameTypeRequiredWhat it is
idsarrayYesThe redirection IDs to delete.
confirmbooleanYes — must be trueThe irreversibility gate. Without it the call is refused before anything is touched.

What comes back

NameTypeWhat it is
deletedarrayThe IDs removed.
countintegerHow many.
successbooleanWhether the call completed.
messagestringA one-line summary of what happened, suitable for showing a human.
error_codestringPresent only on failure — a stable machine-readable reason, such as a missing field, a wrong field type or an unmet confirmation.

Example

Ask your assistant:

Permanently delete redirect 44.

It resolves to one call:

{
  "ability": "rank-math/delete-redirections",
  "parameters": {
    "ids": [44],
    "confirm": true
  }
}

Worth knowing

  • Read the hit count first. It is the only evidence, and it is deleted too.
  • Trashing does the same job reversibly.
  • Breaks inbound links you cannot see or fix.
  • Idempotent.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading