API operation · domains group
DELETE
/domains/{name}/redirects/{id}
First published 3 Oct 2026
0.1.0Unchanged since publicationRemove a path redirect from a domain
Who may call it
AdministratorResellerCustomer
Token scope, any of
domainsallAnswers200 OK
The id selects a single redirect on the named domain. The response contains the updated redirects list.
Returns 404 if the domain does not exist or if no redirect with that id belongs to the domain. Access to an existing domain is limited to administrators, the domain owner and the owner's reseller. Other callers receive 403.
As a command
Run as root on the serverParameters
namepath ·DomainNameRequiredidpath ·integerRequiredExample
See the API overview for how to set $API and $TOKEN.Request
curl -sS -X DELETE "$API/domains/example.com/redirects/1" \ -H "Authorization: Bearer $TOKEN"
Response ·
200 OK{
"redirects": [
{
"code": 1,
"created_at": "2026-09-09T10:15:00Z",
"id": 1,
"keep_query": true,
"match": "text",
"source": "/old",
"target": "https://example.com/new"
}
]
}Errors
13 errors, each a status and a sentence400Domain name required400Domain name too long400Invalid domain name400Invalid path400Path may not climb out with ..400Path may not start with //400Path required400Redirect match must be prefix or exact401Authentication required403Insufficient privileges404Domain '<name>' not found404No redirect for '<source>' on '<name>'404Redirect not foundNo error of this operation matches.
Generated from release 0.2.35 (current) · the API’s own descriptionThis entry has been unchanged since it was first published in release 0.1.0 on 3 Oct 2026.
urbestack.com/docs/api/delete-domains-name-redirects-id/