The Delete User API allows administrators to permanently remove an existing user from the Contact Center system.
This API is typically used to deprovision inactive agents, revoke access for users who have left the organization, or clean up test or duplicate accounts.
Once deleted, the user’s access credentials become invalid, and the user can no longer log in or be assigned to any queues, campaigns, or roles.
<Protocol>://<IP_Domain_Name>:<port>/ameyorestapi/user/users/{userId}
| Header Name | Description |
| sessionId | Valid Session ID obtained from the Login API. Used to authenticate the delete request. |
| Content-Type | (Optional) Indicates the media type of the request. Usually application/json. |
| Parameter Name | Type | Description |
| userId | string | Unique identifier of the user to be deleted from the Contact Center system. |
curl --location --request DELETE '<Protocol>://<IP_Domain_Name>:<port>/ameyorestapi/user/users/abcd' \ --header 'sessionId: <your-session-id>'
{
"status": "success",
"message": "User deleted successfully",
"userId": "abcd"
}