# DELETE /domains/{name}/aliases/{alias}

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

UrbeStack release 0.2.35 API operation in the domains group.

Remove an alias from a domain

- Who may call it: administrator, reseller, customer
- Token scope, any of: domains, all
- Answers: 200 OK

The alias must belong to the named domain. UrbeStack updates Apache, DNS and mail configuration and returns the updated aliases list.

An unknown domain returns 404. 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-alias-del](https://urbestack.com/docs/commands/urbestack-domain-alias-del.md): Removes an alias and updates Apache, DNS and mail configuration.

## Parameters

- `name` (path, DomainName, required)
- `alias` (path, DomainName, 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/aliases/example.com" \
  -H "Authorization: Bearer $TOKEN"
```

Response, 200 OK:

```
{
  "aliases": [
    {
      "created_at": "2026-09-09T10:15:00Z",
      "id": 1,
      "name": "alice"
    }
  ]
}
```

## Errors

- 400: Domain name required
- 400: Domain name too long
- 400: Invalid IPv4 address
- 400: Invalid IPv6 address
- 400: Invalid domain name
- 400: Invalid port
- 400: Invalid setting key
- 401: Authentication required
- 403: Insufficient privileges
- 404: '<alias>' is not an alias of '<name>'
- 404: Domain '<name>' not found
- 404: Setting '<key>' not found
