Sample - GitHub REST API
DELETE/enterprises/{enterprise}/teams/{enterprise-team}/memberships/{username}

Remove team membership

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

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

3 parameters
enterprisestringrequired
The slug version of the enterprise name.
enterprise-teamstringrequired
The slug version of the enterprise team name. You can also substitute this value with the enterprise team id.
usernamestringrequired
The handle for the GitHub user account.

2 status codes
204Response
403Forbidden
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional

Error handling

A 403 is returned: Forbidden.