Remove organization membership for a user
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.
DELETE
/orgs/{org}/memberships/{username}- Source
github-v3-rest.json- Revision
f5f067c1e6f6- Active snapshot
85e53e3d0d65
Request
Path Parameters
- org stringrequired
- username stringrequired
Responses
Response
application/json Basic Error object
Forbidden
documentation_url string
optionalmessage string
optionalstatus string
optionalurl string
optionalapplication/json Basic Error object
Resource not found
documentation_url string
optionalmessage string
optionalstatus string
optionalurl string
optional