Remove outside collaborator from an organization
DELETE
/orgs/{org}/outside_collaborators/{username}
Removing a user from this list will remove them from all the organization’s repositories.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”org
required
string
The organization name. The name is not case sensitive.
username
required
string
The handle for the GitHub user account.
Responses
Section titled “Responses”Response
Unprocessable Entity if user is a member of the organization
Media typeapplication/json
object
message
string
documentation_url
string
Examples
Exampleresponse-if-user-is-a-member-of-the-organization
{ "message": "You cannot specify an organization member to remove as an outside collaborator.", "documentation_url": "https://docs.github.com/rest/orgs/outside-collaborators#remove-outside-collaborator-from-an-organization"}