# Disconnect Agent source sync

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

[Docs](https://everruns.com/docs/)/[API reference](https://everruns.com/docs/api/)/[Agents & authoring](https://everruns.com/docs/api/groups/agents-authoring/)/Disconnect Agent source sync

# Disconnect Agent source sync

Preview

Disconnect GitHub source sync and restore local editing. Keeps the last applied Agent definition.

Public APIEverruns Cloud and self-hosted Platform

DELETE`/v1/agents/{agent_id}/source`

See [authentication](https://everruns.com/docs/sre/runbooks/authentication/) for credentials and permissions.

## Parameters

### Path Parameters

**agent_id**

required

string

Prefixed public identifier

## Responses

200Success

### 200

Success

Media typeapplication/json

### Example generated

```json
example
```

FetchcURL

Request

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


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

Request

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

Additional language examples require JavaScript. The default request example is available above.

200

200 · Success

No response body example is declared for this status.

## Matching endpoints