Skip to content
Primary navigation

Delete user

DELETE/organization/users/{user_id}

Deletes a user from the organization.

Path ParametersExpand Collapse
user_id: string
ReturnsExpand Collapse
id: string
deleted: boolean
object: "organization.user.deleted"

Delete user

curl -X DELETE https://api.openai.com/v1/organization/users/user_abc \
  -H "Authorization: Bearer $OPENAI_ADMIN_KEY" \
  -H "Content-Type: application/json"
{
    "object": "organization.user.deleted",
    "id": "user_abc",
    "deleted": true
}
Returns Examples
{
    "object": "organization.user.deleted",
    "id": "user_abc",
    "deleted": true
}