Delete

[POST] .../v1/user/delete

Deletes user. Use this destructive method to delete a system user after confirming that the user must no longer work in the account. The method validates id, blocks deletion of the built-in Administrator user and the current request user, checks the current request user's user delete permission, removes the user through the persistent layer, clears active session cache, fires user-deleted side effects and returns row_affected. The request body is required and id must be positive; deleting user id 1 and deleting yourself are explicitly rejected before the persistent operation. Missing body, invalid id, protected Administrator deletion, self-deletion, denied permission, referenced-data conflicts and database failures are returned as HTTP 200 ErrorResult business errors.

Request Parameters

Name Type Required Description
id Int64 Required System user ID.

Request Example

{
  "id": 17
}

Response Parameters

Name Type Description
ok Boolean Indicates whether the request completed successfully.
result Update Update operation result.

Response Example

{
  "ok": true,
  "result": {
    "row_affected": 1,
    "ids": []
  }
}