# DELETE /domains/{name}/mail/forwarders/{local}

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

UrbeStack release 0.2.35 API operation in the mail group.

Remove a forwarder

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

Any mailbox at the forwarder's email address continues to receive mail. The 200 response contains the forwarder's email address in address and sets deleted to true.

Administrators, the domain's owner and the owner's reseller can call this operation with a token that has the mail scope.

## As a command

- [urbestack-mail-forwarder-del](https://urbestack.com/docs/commands/urbestack-mail-forwarder-del.md): Removes a forwarder.

## Parameters

- `name` (path, DomainName, required)
- `local` (path, LocalPart, 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/mail/forwarders/info" \
  -H "Authorization: Bearer $TOKEN"
```

Response, 200 OK:

```
{
  "address": "info@example.com",
  "deleted": true
}
```

## Errors

- 400: --address is required
- 400: <what> must be text without control characters, 1 to <max> characters
- 400: Domain name required
- 400: Domain name too long
- 400: Invalid IPv4 address
- 400: Invalid IPv6 address
- 400: Invalid domain name
- 400: Invalid mail address: local part over 64 characters
- 400: Invalid mail address: no local part
- 400: Invalid mail address: the local part may hold letters, digits, dots, _ + and -
- 400: Invalid port
- 400: Invalid setting key
- 401: Authentication required
- 404: No such forwarder: <address>
- 404: Setting '<key>' not found
