DomainAdmin cascade delete

Delete DomainAdmin account and all its dependents (administered domains and its MailUsers)

Caution

Use with caution as this would remove domains and its MailUsers even if they are administered by other DomainAdmins.

  • HTTP Method: DELETE
  • URL: https://example.domain.tld/api/v1/accounts/cascade/domainadmin/<username>/
  • Require authentication: Yes
  • Permission level required: MasterAdmin

Path parameters

Parameter Type Description Required
username str Account username to delete Required

Response

HTTP 204 NO CONTENT (empty string)

Example request (Python)

import requests
import json
from pprint import pprint

url = "https://example.domain.tld/api/v1/accounts/cascade/domainadmin/da1/"
r = requests.delete(url, auth=("admin","long-auth_token-here"))
try:
    pprint(r.json())
except:
    print(r.text)
print(r.status_code)

Example response (text)


204