---
title: "Remove a repository from a team"
method: DELETE
path: "/teams/{id}/repos/{org}/{repo}"
tags: ["organization"]
---

# Remove a repository from a team

`DELETE /teams/{id}/repos/{org}/{repo}`

This does not delete the repository, it only removes the repository from the team.

## Path parameters

- `id` integer, required
- `org` string, required
- `repo` string, required

## Response `204`

APIEmpty is an empty response

## Other responses

- `403` — APIForbiddenError is a forbidden error response
- `404` — APINotFound is a not found empty response

---

[API](https://skmtc.net/gitea/apis/gitea-api.md) · [All operations](https://skmtc.net/gitea/apis/gitea-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gitea/gitea-api/versions/350de506cefa/schema)
