API operation · mail group
DELETE
/domains/{name}/mail/filters/{id}
First published 3 Oct 2026
0.1.0Unchanged since publicationDelete a mail filter from the domain
Who may call it
AdministratorResellerCustomer
Token scope, any of
mailallAnswers200 OK
The id must be a positive integer of up to 10 digits, with no leading zero. The operation returns 404 if the filter does not exist or belongs to another domain. The 200 response contains the filter'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 serverParameters
namepath ·DomainNameRequiredidpath ·integerRequiredExample
See the API overview for how to set $API and $TOKEN.Request
curl -sS -X DELETE "$API/domains/example.com/mail/filters/1" \ -H "Authorization: Bearer $TOKEN"
Response ·
200 OK{
"deleted": true,
"id": 1
}Errors
14 errors, each a status and a sentence400--id is required400<what> must be text without control characters, 1 to <max> characters400Domain name required400Domain name too long400Invalid IPv4 address400Invalid IPv6 address400Invalid domain name400Invalid id400Invalid port400Invalid setting key401Authentication required404Filter <id> not found404No such filter: <id>404Setting '<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-domains-name-mail-filters-id/