Delete user

Delete Account User

Deletes a specific user from your account.

Endpoint

DELETE v5/accountuser/{user_id}

Requires authentication.

Path Parameters

The user to delete.

user_id
string
required
The ID of the account user to delete.

Query Parameters  

None

Response

Returns the deleted user's record with their status set to Disabled.

result_ok
boolean
Whether the request succeeded.
data
object
The account user record after deletion.

Examples

Request (cURL)
curl -X DELETE "https://api.alchemer.com/v5/accountuser/{{user_id}}?api_token=YOUR_API_TOKEN&api_token_secret=YOUR_API_TOKEN_SECRET"
Response
{
  "result_ok": true,
  "data": {
    "id": "123456",
    "username": "user@example.com",
    "email": "user@example.com",
    "admin": 0,
    "phone_support": 0,
    "userdata": [],
    "license": "",
    "defaultteam": false,
    "status": "Disabled",
    "last_login": null
  }
}