Skip to content
For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to the page URL.
Primary navigation

Delete user

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

Deletes a user from the organization.

Delete user

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

The ID of the user.

Returns
AdminOrganizationUserDeleteResponse: object { id, deleted, object }
id: string
deleted: boolean
object: "organization.user.deleted"
Returns Examples
Response example
{
    "object": "organization.user.deleted",
    "id": "user_abc",
    "deleted": true
}