Skip to content

Delete organization role

DELETE/organization/roles/{role_id}

Deletes a custom role from the organization.

Path ParametersExpand Collapse
role_id: string
ReturnsExpand Collapse
id: string

Identifier of the deleted role.

deleted: boolean

Whether the role was deleted.

object: "role.deleted"

Always role.deleted.

Delete organization role

curl https://api.openai.com/v1/organization/roles/$ROLE_ID \
    -X DELETE \
    -H "Authorization: Bearer $OPENAI_API_KEY"
{
  "id": "id",
  "deleted": true,
  "object": "role.deleted"
}
Returns Examples
{
  "id": "id",
  "deleted": true,
  "object": "role.deleted"
}