Get your free beta license ↗
API operation · mail group
DELETE

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

First published 3 Oct 20260.1.0Unchanged since publication

Remove a forwarder

Who may call it
AdministratorResellerCustomer
Token scope, any of
mailall
Answers200 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

Run as root on the server

Parameters

namepath ·DomainNameRequired
localpath ·LocalPartRequired

Example

See the API overview for how to set $API and $TOKEN.
Request
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

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