Sample - OpenAI API
DELETE/organization/users/{user_id}

Delete an organization user

Deletes a user from the organization. Use user_id to identify the organization user to remove. The response confirms deletion with the deleted user's identifier and deletion status.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

1 parameter
user_idstringrequired
The identifier of the organization user to delete.

1 status code
200Returns a deletion object containing the deleted user's identifier and a `deleted` flag set to true.
objectstringrequired
Allowed:organization.user.deleted
idstringrequired
deletedbooleanrequired

Error handling

user_id must identify an existing organization user. Use the user's organization identifier rather than a nested account identifier when selecting the user to delete.