# Disconnect an agent from GitHub: uninstall its GitHub App and remove the connection, keeping the App for a later reconnect. When the App was never installed, forget it instead, so the next connect creates a new one (for example in a GitHub organization).

Source: <https://everruns.com/docs/api/operations/disconnect_agent_github/>

DELETE

/v1/agents/{agent\_id}/github

Select code samplecURL (shell:curl)

```js
const url = 'https://app.everruns.com/api/v1/agents/example/github';
const options = {method: 'DELETE'};


try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```sh
curl --request DELETE \
  --url https://app.everruns.com/api/v1/agents/example/github
```

* Production APIapp.everruns.com/api/v1/agents/{agent\_id}/github

## Parameters

### Path Parameters

**agent\_id**

required

string

Prefixed public identifier

## Responses

### 200

Success

Media typeapplication/json

Result of disconnecting an agent from GitHub.

object

**outcome**

required

What a disconnect did.

string

Allowed values: disconnected started\_over

##### Example

```json
{
  "outcome": "disconnected"
}
```

### 404

Agent or GitHub connection not found