provider teams DELETE /orgs/{org}/teams/{team_slug}
@utdk/github /orgs/{org}/teams/{team_slug}
Delete a team
To delete a team, the authenticated user must be an organization owner or team maintainer. If you are an organization owner, deleting a parent team will delete all of its child teams as well. > [!NOTE] > You can also specify a team by `org_id` and `team_id` using the route `DELETE /organizations/{org_id}/team/{team_id}`.
org path required
The organization name. The name is not case sensitive.
string
team_slug path required
The slug of the team name.
string

Try it

Authentication
Configure credentials for GitHub v3 REST API
teams.deleteInOrg
DELETE/orgs/{org}/teams/{team_slug}
To delete a team, the authenticated user must be an organization owner or team maintainer. If you are an organization owner, deleting a parent team will delete all of its child teams as well. > [!NOTE] > You can also specify a team by `org_id` and `team_id` using the route `DELETE /organizations/{org_id}/team/{team_id}`.

Parameters

required

The organization name. The name is not case sensitive.

required

The slug of the team name.

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import github from '@utdk/github';

await github.teams.deleteInOrg()