Skip to main content
DELETE /v1/account/domains/{id} API Key

Delete a domain

Delete a domain from the account. Cannot delete the primary domain while
other domains exist - either make another domain primary first, or delete
all non-primary domains first.

Parameters

Name Location Type Description
id * path string Domain ID
X-API-Key * header string API key for authentication

* Required parameter

Response

200 Domain deleted

Content-Type: application/json

success boolean
data object
message string

Code Examples

import os
from aho_sdk import AhoSdk

client = AhoSdk.account(api_key=os.environ["AHO_API_KEY"])

result = client.domains.delete(
    id="example_id"
)

Try It

Log in to test this endpoint directly from the documentation.

Log in