Sample - GitHub REST API
DELETE/orgs/{org}/outside_collaborators/{username}

Remove outside collaborator from an organization

Removing a user from this list will remove them from all the organization's repositories.

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

2 parameters
orgstringrequired
The organization name. The name is not case sensitive.
usernamestringrequired
The handle for the GitHub user account.

2 status codes
204Response
422Unprocessable Entity if user is a member of the organization
messagestringoptional
documentation_urlstringoptional

Error handling

A 422 is returned: Unprocessable Entity if user is a member of the organization.