Skip to content

Remove team membership

DELETE
/enterprises/{enterprise}/teams/{enterprise-team}/memberships/{username}

Remove membership of a specific user from a particular team in an enterprise.

API method documentation

enterprise
required
string

The slug version of the enterprise name.

enterprise-team
required
string

The slug version of the enterprise team name. You can also substitute this value with the enterprise team id.

username
required
string

The handle for the GitHub user account.

Response

Forbidden

Media type application/json
Basic Error

Basic Error

object
message
string
documentation_url
string
url
string
status
string
Example generated
{
"message": "example",
"documentation_url": "example",
"url": "example",
"status": "example"
}