Delete an account¶
Delete a specific account
- HTTP Method:
DELETE
- URL:
https://example.domain.tld/api/v1/accounts/<username>/
- Require authentication:
Yes
- Permission level required:
MasterAdmin
/DomainAdmin
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/u2@vonmail.com/"
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