# Permanently delete a specific role by roleId Permanently deletes the role identified by roleId. The default Administrator role cannot be deleted. ## Endpoint `DELETE /emsapi/roles/{roleId}` ## Request ### Request URL `https://[serverurl](https://www.manageengine.com/products/desktop-central/help/api/cloud/oauth-authentication-endpoint-domain.html)/emsapi/roles/{roleId}` ### Scope `DesktopCentralCloud.Admin.DELETE` ### Header `Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52` ### Request Parameters #### Request Headers - **accept** `string` — **Mandatory** - Value: `application/deleteRole.v1+json` - Specifies the expected response format. Set to `application/deleteRole.v1+json` to receive the role deletion response in JSON format. #### Path Parameters - **roleId** `string` — **Mandatory** - Unique role identifier. To get role id click here: [Get Role Id](https://www.manageengine.com/products/desktop-central/help/api/cloud/roles-delete-role.html?Roles_getRoles) ### Sample Request ```curl curl --request DELETE \ --url https://appdomains/emsapi/roles/{roleId} \ --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' \ --header 'accept: application/deleteRole.v1+json' ``` ## Response ### Response Parameters #### HTTP Code 200 Response Body — `application/json` `JSON Object` - **message** `string` - Success message confirming role deletion. - **successCode** `string` - Success code for the role deletion operation. ### Sample Response: HTTP 200 Role deletion success response. ```json { "message": "Role Security Auditor has been deleted successfully.", "successCode": "40021" } ``` ### Possible Response Codes - **200** — HTTP code ## Rate Limits ![](https://www.zohowebstatic.com/sites/zweb/images/people/ico-help.png) **Duration:** 1 minute | **Threshold:** 30 | **Lock period:** 5 minutes Duration - Time window for the threshold. Threshold - Number of API calls allowed within the specified duration. Lock Period - Wait time before consecutive API requests.