delete_redirect
Deletes one user redirect rule by its ID from list_redirects so that redirect stops applying; file-based rules must be changed in the deploy's _redirects file instead.
Instructions
Delete one user redirect rule by its id, from list_redirects. File rules can't be deleted this way: naming a file rule's line answers FileRule with the line. Change the deploy's _redirects instead, or switch the file rules off with switch_file_redirects. To delete several rules, use edit_redirects or set_redirects. Visitors stop being redirected within about 5 minutes.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"siteId": "<siteId>",
"ruleId": "<ruleId>"
},
"name": "delete_redirect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ruleId | Yes | The user rule's id, starting with `r_`. | |
| siteId | Yes | The site ID (from `list_sites`). | |
| partition | No | Data partition the site lives in. Omit to use the user's home partition. |