# DELETE /domains/{name}/redirects/{id}

First published 3 Oct 2026 (release 0.1.0) · Unchanged since publication

UrbeStack release 0.2.35 API operation in the domains group.

Remove a path redirect from a domain

- Who may call it: administrator, reseller, customer
- Token scope, any of: domains, all
- Answers: 200 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

- [urbestack-domain-redirect-del](https://urbestack.com/docs/commands/urbestack-domain-redirect-del.md): Removes redirects for a source path on a domain.

## Parameters

- `name` (path, DomainName, required)
- `id` (path, integer, required)

## Example

Set $API to the base URL and $TOKEN to the token, as the [API overview](https://urbestack.com/docs/api.md) shows.

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

- 400: Domain name required
- 400: Domain name too long
- 400: Invalid domain name
- 400: Invalid path
- 400: Path may not climb out with ..
- 400: Path may not start with //
- 400: Path required
- 400: Redirect match must be prefix or exact
- 401: Authentication required
- 403: Insufficient privileges
- 404: Domain '<name>' not found
- 404: No redirect for '<source>' on '<name>'
- 404: Redirect not found
