DELETE - Remove Domain from Organization

Purpose

The API removes the specified domain from the organization.  

OAuth Scope

Use the scope

ZohoMail.organization.domains.ALL (or) ZohoMail.organization.domains.DELETE

to generate the Authtoken.

ALL - Grants full access to domains.

DELETE - Grants delete access to domains.

Request URL

Method: DELETE

https://mail.zoho.com/api/organization/{zoid}/domains/{domainName}

Path Parameters

  • zoid* long
    • This parameter specifies the unique Zoho Organization Identifier for the organization.
    • This parameter can be fetched from Get Organization Details API.
  • domainName* string
    • This parameter specifies the name of the domain which needs to be deleted.

 

* - Mandatory parameter

Response Codes

Refer here for the response codes and their meaning.

Sample Request

Copiedcurl "https://mail.zoho.com/api/organization/1234567890/domains/zylker.com" \
-X DELETE \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization:Zoho-oauthtoken *****" 

Sample Response

Copied{
   "status": {
       "code": 200,
       "description": "success"
   }
}