DELETE
/teams/{team_id}/repos/{owner}/{repo}DeprecatedRemove a repository from a team (Legacy)
[!WARNING] Endpoint closing down notice: This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new Remove a repository from a team endpoint.
If the authenticated user is an organization owner or a team maintainer, they can remove any repositories from the team. To remove a repository from a team as an organization member, the authenticated user must have admin access to the repository and must be able to see the team. NOTE: This does not delete the repository, it just removes it from the team.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
team_idintegerrequired
The unique identifier of the team.
ownerstringrequired
The account owner of the repository. The name is not case sensitive.
repostringrequired
The name of the repository without the `.git` extension. The name is not case sensitive.
204Response
Was this helpful?