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

/domains/{name}/mail/lists/{id}

First published 3 Oct 20260.1.0Unchanged since publication

Delete an entry from the domain's mail sender lists

Who may call it
AdministratorResellerCustomer
Token scope, any of
mailall
Answers200 OK

Use the entry's id from GET /domains/{name}/mail/lists. The id must be a positive integer of up to 10 digits, with no leading zero. The operation returns 404 if the entry is absent from the domain's lists. The 200 response contains the entry's id and deleted set to true.

Administrators, the customer who owns the domain and that customer'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
idpath ·integerRequired

Example

See the API overview for how to set $API and $TOKEN.
Request
curl -sS -X DELETE "$API/domains/example.com/mail/lists/1" \
  -H "Authorization: Bearer $TOKEN"
Response · 200 OK
{
  "deleted": true,
  "id": 1
}

Errors

20 errors, each a status and a sentence
400<what> must be text without control characters, 1 to <max> characters
400Domain name required
400Domain name too long
400Give --allow ENTRY, --block ENTRY or --nogreylist ENTRY, one of them
400Give --domain DOMAIN or --server
400Invalid IPv4 address
400Invalid IPv6 address
400Invalid domain name
400Invalid id
400Invalid mail address
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
400List type must be allow, block, or nogreylist.
401Authentication required
404<entry> is not on that <kind> list
404List entry <id> not found
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-lists-id/