---
title: "Remove a repository from a team (Legacy)"
method: DELETE
path: "/teams/{team_id}/repos/{owner}/{repo}"
tags: ["teams"]
deprecated: true
---

# Remove a repository from a team (Legacy)

`DELETE /teams/{team_id}/repos/{owner}/{repo}`

> **Deprecated.**

> [!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](https://docs.github.com/enterprise-cloud@latest/rest/teams/teams#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.

## Path parameters

- `team_id` integer, required
- `owner` string, required
- `repo` string, required

## Response `204`

Response

---

[API](https://skmtc.net/github/apis/github-v3-rest-api-3.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api-3/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api-3/versions/dc0584ac4e13/schema)
