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

/botmail/domains/{name}

First published 22 Oct 20260.2.15Unchanged since publication

Disable BotMail for a domain

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

UrbeStack immediately revokes every bot key for the domain's mailboxes. It removes the BotMail hostname from the DNS zone and Apache and removes any certificate issued specifically for that hostname. The 200 response includes name, state, and revoked, the number of keys revoked.

As a command

Run as root on the server

Parameters

namepath ·DomainNameRequired

Example

See the API overview for how to set $API and $TOKEN.
Request
curl -sS -X DELETE "$API/botmail/domains/example.com" \
  -H "Authorization: Bearer $TOKEN"
Response · 200 OK
{
  "name": "alice",
  "revoked": 1,
  "state": "text"
}

Errors

14 errors, each a status and a sentence
400--name is required
400Domain name required
400Domain name too long
400Invalid IPv4 address
400Invalid IPv6 address
400Invalid domain name
400Invalid port
400Invalid setting key
400Invalid username: 2 to 32 lowercase letters, digits or underscores, starting with a letter
400Username '<value>' is reserved
401Authentication required
404BotMail is not on for <name>
404No such domain: <domain>
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.2.15 on 22 Oct 2026.
urbestack.com/docs/api/delete-botmail-domains-name/