Delete a sub-user
DELETE
/subuserdel/{user_id}
Deletes a sub-user and its related records. No history is lost: orders and delegations are reassigned to the parent account, then the sub-user's own records are removed — API key, settings, referral data, deposit address — and a deletion record is stored for auditing. Everything runs in one transaction: all of it, or nothing.
Only sub-users can be deleted, and only your own: real accounts are not deletable through this method, and an attempt to delete someone else's sub-user is rejected with 403.
Authorizations
ApiKeyAuth
API key from the dashboard. Some Host Mode endpoints also accept the key as an api_key field in the request body — this is stated in the schema of the particular operation.
Type
API Key (header: X-API-KEY)
Parameters
Path Parameters
user_id*
Type
Requiredinteger
Example
1234Responses
The sub-user was deleted and its history reassigned to the parent.
application/json
JSON "user_id": 0, "google_id": "string", "parent_user_id": 0, "total_reassigned": 0, "total_deleted": 0, "message": "string"
{
}