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
Theme

Delete organization role

$ openai admin:organization:roles delete
DELETE
/organization/roles/{role_id}

Deletes a custom role from the organization.

Delete organization role

openai admin:organization:roles delete \
  --admin-api-key 'My Admin API Key' \
  --role-id role_id
Response example
{
    "object": "role.deleted",
    "id": "role_01J1F8ROLE01",
    "deleted": true
}
Parameters
--role-id: string

The ID of the role to delete.

Returns
AdminOrganizationRoleDeleteResponse: object { id, deleted, object }

Confirmation payload returned after deleting a role.

id: string

Identifier of the deleted role.

deleted: boolean

Whether the role was deleted.

object: "role.deleted"

Always role.deleted.

Returns Examples
Response example
{
    "object": "role.deleted",
    "id": "role_01J1F8ROLE01",
    "deleted": true
}