---
title: "Delete an Organization Member from a Team"
url: https://docs.sentry.io/api/teams/delete-an-organization-member-from-a-team/
---

# Delete an Organization Member from a Team | Sentry Docs

DELETE /api/0/organizations/{organization\_id\_or\_slug}/members/{member\_id}/teams/{team\_id\_or\_slug}/

Delete an organization member from a team.

Note the permission scopes vary depending on the type of authorization token. The following table outlines the accepted scopes.

|                                                                                  |                                                                                                             |
| -------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
| [Org Auth Token](https://docs.sentry.io/api/auth.md#auth-tokens)                 | * **• org:write**
* **• org:admin**
* **• team:admin**                                                      |
| [User Auth Token](https://docs.sentry.io/api/auth.md#user-authentication-tokens) | - **• org:read\***
- **• org:write**
- **• org:admin**
- **• team:admin**
- **• org:read + team:admin\*\*** |

\***`org:read`** can only be used to remove yourself from the teams you are a member of.

\*\*Team Admins must have both **`org:read`** and **`team:admin`** scopes in their user authorization token to delete members from their teams.

### Path Parameters

* `organization_id_or_slug` *(string)*

  REQUIRED

  The ID or slug of the organization the resource belongs to.

* `member_id` *(string)*

  REQUIRED

  The ID of the organization member to delete from the team

* `team_id_or_slug` *(string)*

  REQUIRED

  The ID or slug of the team the resource belongs to.

### Scopes

You need to [authenticate via bearer auth token.](https://docs.sentry.io/api/auth.md)

`<auth_token>` requires one of the following scopes:

* `org:admin`
* `org:read`
* `org:write`
* `team:admin`

```
curl https://sentry.io/api/0/organizations/{organization_id_or_slug}/members/{member_id}/teams/{team_id_or_slug}/ \
 -H 'Authorization: Bearer <auth_token>' \
 -X DELETE
```

RESPONSESCHEMA

```
Copied
{
  "id": "4502349234123",
  "slug": "ancient-gabelers",
  "name": "Ancient Gabelers",
  "dateCreated": "2023-05-31T19:47:53.621181Z",
  "isMember": false,
  "teamRole": null,
  "flags": {
    "idp:provisioned": false
  },
  "access": [
    "alerts:read",
    "event:write",
    "project:read",
    "team:read",
    "member:read",
    "project:releases",
    "event:read",
    "org:read"
  ],
  "hasAccess": true,
  "isPending": false,
  "memberCount": 3,
  "avatar": {
    "avatarType": "letter_avatar",
    "avatarUuid": null,
    "avatarUrl": null
  }
}
```

---

Find other pages: [Sitemap](https://docs.sentry.io/sitemap.md) lists every page with a one-line summary, and [llms.txt](https://docs.sentry.io/llms.txt) gives an overview with guidance for agents.
