# Delete a user Deletes the specified user account and returns the deletion status. ## Endpoint `DELETE /emsapi/users/{userId}` ## Request ### Request URL `https://{server-hostname}:8383/emsapi/users/{userId}` ### Scope `Admin.DELETE` ### Header `Authorization: d92d4xxxxxxxxxxxxx15f52` ### Request Parameters #### Path Parameters - **userId** `string` — Mandatory Unique user identifier. To get user id click here. [Get User Id](https://www.manageengine.com/products/desktop-central/help/api/onpremise/users-delete-user-on-prem.html?Users_getUsersOnPrem) #### Request Body `application/userDeletion.v1+json` `array` ### Sample Request ```curl curl --request DELETE \ --url https://appdomain/emsapi/users/{userId} \ --header 'Authorization: d92d4xxxxxxxxxxxxx15f52' \ --header 'content-type: application/userDeletion.v1+json' \ --data '{}' ``` ### Sample Request Body Delete a user with an empty request body object. ```json {} ``` ## Response ### Response Parameters #### HTTP Code 200 Response Body — `application/json` `JSON object` - **userCreatedByDC** `boolean` Indicates whether the user account was created by Endpoint Central. - **domainName** `string` Domain name of the deleted user. - **userName** `string` Username of the deleted user. ### Possible Response Codes - **200** `HTTP code` ### Sample Response: HTTP 200 User deletion succeeds and returns deleted user identity. ```json { "userCreatedByDC": true, "domainName": "local", "userName": "alex.morgan" } ``` ## 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.