API operation · mail group
DELETE
/mail/lists/{id}
First published 3 Oct 2026
0.1.0Unchanged since publicationRemove an entry from a server-wide mail sender list
Who may call it
AdministratorResellerCustomer
Token scope, any of
mailallAnswers200 OK
Removes the server-wide list entry identified by id. The 200 response returns id and deleted set to true. An unknown id or an id for a domain list entry returns 404. Requires an administrator token with the mail scope.
As a command
Run as root on the serverParameters
idpath ·integerRequiredExample
See the API overview for how to set $API and $TOKEN.Request
curl -sS -X DELETE "$API/mail/lists/1" \ -H "Authorization: Bearer $TOKEN"
Response ·
200 OK{
"deleted": true,
"id": 1
}Errors
20 errors, each a status and a sentence400<what> must be text without control characters, 1 to <max> characters400Domain name required400Domain name too long400Give --allow ENTRY, --block ENTRY or --nogreylist ENTRY, one of them400Give --domain DOMAIN or --server400Invalid IPv4 address400Invalid IPv6 address400Invalid domain name400Invalid id400Invalid mail address400Invalid mail address: local part over 64 characters400Invalid mail address: no local part400Invalid mail address: the local part may hold letters, digits, dots, _ + and -400Invalid port400Invalid setting key400List type must be allow, block, or nogreylist.401Authentication required404<entry> is not on that <kind> list404List entry <id> not found404Setting '<key>' not foundNo error of this operation matches.
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-mail-lists-id/