---
title: "Remove team membership"
method: DELETE
path: "/admin/teams/{teamid}/members/{username}"
tags: ["Administration"]
---

# Remove team membership

`DELETE /admin/teams/{teamid}/members/{username}`

Requires the authenticated user to be a site administrator.

## Path parameters

- `teamid` string, required
- `username` string, required

## Response `204`

The resource has been successfully deleted.

## Other responses

- `404` — Resource not found.

---

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