---
title: "Remove the connection between an external group and a team"
method: DELETE
path: "/orgs/{org}/teams/{team_slug}/external-groups"
tags: ["teams"]
---

# Remove the connection between an external group and a team

`DELETE /orgs/{org}/teams/{team_slug}/external-groups`

Deletes a connection between a team and an external group.

You can manage team membership with your IdP using Enterprise Managed Users for GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.

## Path parameters

- `org` string, required
- `team_slug` string, required

## Response `204`

Response

## Other responses

- `422` — Unprocessable entity if you attempt to modify an enterprise team at the organization level.

---

[API](https://skmtc.net/github/apis/ghec.md) · [All operations](https://skmtc.net/github/apis/ghec/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/ghec/revisions/8ae6d0c8716e/schema)
