---
title: "Remove all organization roles for a team"
method: DELETE
path: "/orgs/{org}/organization-roles/teams/{team_slug}"
tags: ["orgs"]
---

# Remove all organization roles for a team

`DELETE /orgs/{org}/organization-roles/teams/{team_slug}`

Removes all assigned organization roles from a team. For more information on organization roles, see "[Using organization roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/using-organization-roles)."

The authenticated user must be an administrator for the organization to use this endpoint.

OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.

## Path parameters

- `org` string, required
- `team_slug` string, required

## Response `204`

Response

---

[API](https://skmtc.net/github/apis/api-github-com.md) · [All operations](https://skmtc.net/github/apis/api-github-com/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/api-github-com/revisions/a367f7028301/schema)
