Skip to content
Primary navigation

Delete user

$ openai admin:organization:users delete
DELETE/organization/users/{user_id}

Deletes a user from the organization.

ParametersExpand Collapse
--user-id: string

The ID of the user.

ReturnsExpand Collapse
AdminOrganizationUserDeleteResponse: object { id, deleted, object }
id: string
deleted: boolean
object: "organization.user.deleted"

Delete user

openai admin:organization:users delete \
  --admin-api-key 'My Admin API Key' \
  --user-id user_id
{
    "object": "organization.user.deleted",
    "id": "user_abc",
    "deleted": true
}
Returns Examples
{
    "object": "organization.user.deleted",
    "id": "user_abc",
    "deleted": true
}