# Permanently delete a specific role by roleId Permanently deletes the role identified by roleId. The default Administrator role cannot be deleted. ## Endpoints **DELETE** `/emsapi/roles/{roleId}` ## Request URL `https://{server-hostname}:8383/emsapi/roles/{roleId}` ## Scope `Admin.DELETE` ## Header `Authorization: d92d4xxxxxxxxxxxxx15f52` ## Request Parameters ### Request Headers - **accept** `string` — **Mandatory** - `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/onpremise/roles-delete-role.html?Roles_getRoles) ## Sample Request ### Curl ```curl curl --request DELETE \ --url https://appdomain/emsapi/roles/{roleId} \ --header 'Authorization: d92d4xxxxxxxxxxxxx15f52' \ --header 'accept: application/deleteRole.v1+json' ``` ## 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. ## Possible Response Codes - **200** `HTTP code` ## Sample Response: HTTP 200 Role deletion success response. ```json { "message": "Role Security Auditor has been deleted successfully.", "successCode": "40021" } ``` ![ ](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.