# Remove outside collaborator from an organization

From **GitHub v3 REST API**.

`DELETE /orgs/{org}/outside_collaborators/{username}`

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

## Parameters

### `org`

- Location: path
- Required: true
- Type: `string`

### `username`

- Location: path
- Required: true
- Type: `string`

## Responses

### `204`

Response

### `422`

Unprocessable Entity if user is a member of the organization

### `application/json`

- Type: `object`

```json
{
  "documentation_url": "https://docs.github.com/enterprise-server@3.0/rest/reference/orgs#remove-outside-collaborator",
  "message": "You cannot specify an organization member to remove as an outside collaborator."
}
```

```json
{"properties":{"documentation_url":{"type":"string"},"message":{"type":"string"}},"type":"object"}
```

## Request examples

### cURL

```shell
curl --request DELETE \
  --url {protocol}://{hostname}/api/v3/orgs/{org}/outside_collaborators/{username}
```
