Deletes a user from the organization.

DELETE /organization/users/{user_id}

Path parameters

  • user_id string Required

    The ID of the user.

Responses

  • 200 application/json

    User deleted successfully.

    Hide response attributes Show response attributes object
    • object string Required

      Value is organization.user.deleted.

    • id string Required
    • deleted boolean Required
DELETE /organization/users/{user_id}
curl \
 --request DELETE 'https://api.openai.com/v1/organization/users/{user_id}' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "object": "organization.user.deleted",
  "id": "string",
  "deleted": true
}