# Forget the Git repository

Source: https://docs.vlayers.ai/reference/hosting/delete-agent-source-git

`DELETE /v1/agents/{id}/source/git` · scope `workspace:write`

Removes the repository record. The connection that held the credential is not touched.

Requires an API key with the `workspace:write` scope.

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `id` | path | string | yes | The agent id. Example: `"0192f5c2-6f7a-7b9c-8d1e-2f3a4b5c6d78"` |

## Request

cURL:

```bash
curl -X DELETE "https://api.vlayers.ai/v1/agents/$AGENT_ID/source/git" \
  -H "Authorization: Bearer $VOICELAYER_API_KEY"
```

TypeScript:

```ts
import { VoiceLayer } from '@voicelayer/api';

const voicelayer = new VoiceLayer();

const { deleted } = await voicelayer.hosting.deleteAgentSourceGit('<agent-id>');
console.log(deleted);
```

Python:

```python
from voicelayer import VoiceLayer

vl = VoiceLayer()

result = vl.hosting.delete_agent_source_git("<agent-id>")
print(result.deleted)
```

## Response `200`

```json
{
  "deleted": true
}
```
