# Destroy
Delete the application domain. Note that you can't retrive it back once you delete it.
# HTTP Request:
DELETE https://api.serveravatar.com/organizations/{organization}/servers/{server}/applications/{application}/application-domains/{application_domain}
# Curl Request Example:
curl --request DELETE \
--url "https://api.serveravatar.com/organizations/{organization}/servers/{server}/applications/{application}/application-domains/{application_domain}" \
--header 'content-type: application/json' \
--header 'Authorization: <YOUR API TOKEN>'
# Response:
# Application Domain Deleted sucessfully
- 200 (Ok)
{
"message": "Application domain deleted successfully."
}
# Application Primary Domain Detected
- 500 (Internal Server Error)
{
"message": "Primary domain cannot be deleted."
}
# Application Domain Not Found
- 404 (Not Found)
{
"message": "Application Domain not found!"
}
# Organization Not Found
- 404 (Not Found)
{
"message": "Organization not found!"
}
# Server Not Found
- 404 (Not Found)
{
"message": "Server not found!"
}
# Server Error
- 500 (Internal Server Error)
{
"message": "Something went really wrong!"
}