---
title: "Remove organization membership for a user"
method: DELETE
path: "/orgs/{org}/memberships/{username}"
tags: ["orgs"]
---

# Remove organization membership for a user

`DELETE /orgs/{org}/memberships/{username}`

In order to remove a user's membership with an organization, the authenticated user must be an organization owner.

If the specified user is an active member of the organization, this will remove them from the organization. If the specified user has been invited to the organization, this will cancel their invitation. The specified user will receive an email notification in both cases.

## Path parameters

- `org` string, required
- `username` string, required

## Response `204`

Response

## Other responses

- `403` — Forbidden
- `404` — Resource not found

---

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