Skip to main content

Terminate User

Permanently terminates a user account, revoking all access and invalidating all sessions and API keys.

danger

Terminating a user account is permanent and cannot be undone. All active sessions and API keys for the user will be immediately invalidated. Confirm the correct User ID before calling this endpoint.

Endpoint

DELETE /v2/users/{id}

Path Parameters

ParameterTypeRequiredDescription
idintegerYesThe User ID of the account to terminate

Response

Returns a boolean indicating whether the termination was successful.

{
"success": true,
"data": true
}

Code Examples

curl -X DELETE "https://rest.ecgrid.io/v2/users/$ID" \
-H "X-API-Key: $ECGRID_API_KEY"

See Also

  • Get User — verify user details before termination
  • Reset Sessions — revoke active sessions without terminating the account
  • List Users — review users before taking action