API7 Docs
API7 GatewayAPI7 Enterprise Admin APIsDelete a user

Delete a user

DELETE /api/users/{user_id}

DELETE /api/users/{user_id}

Interactive request editor loads with JavaScript.

Authorization

X-API-KEY<token>

In: header

Path Parameters

user_id*string

The user ID.

Length1 <= length

Response Body

application/json

curl -X DELETE "$API_BASE_URL/api/users/86fb9981-d9d2-4555-9df8-91ae92129335"

Operation completed successfully with no response body.

""
Complete operation details and schema variants

DELETE /api/users/{user_id}

Delete a user

Delete a dashboard user account and revoke its login access. Verify downstream ownership and role dependencies before removal. Required IAM Permission: Action iam:DeleteUser, Resource arn:api7:iam:user/%s

Parameters

  • user_id (path, string, required): The user ID.

Responses

  • 200: Operation completed successfully with no response body.
  • 400: Invalid arguments. Error details will be provided in the response.

cURL

curl -X DELETE '$API_BASE_URL/api/users/{user_id}'