---
title: "disconnectProviderLogin"
---

> Documentation Index
> Fetch the complete documentation index at: https://agenthold.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# disconnectProviderLogin

Path: agenthold API › provider-logins

`DELETE /me/provider-logins/{provider}`

URL: `/api/v1/me/provider-logins/{provider}`

Delete your login for a harness. Agents using it lose access at once.

## Authentication

Requires one of the following:

- `session`, apiKey, in cookie
- `token`, http bearer, header `Authorization`

## Path parameters

- `provider` (`disconnectProviderLogin.path.provider`; string, required) — Harness id (claude-code, codex).

## Code samples

### cURL

```bash
curl --request DELETE \
  --url '<base-url>/api/v1/me/provider-logins/<provider>' \
  --cookie 'agenthold_session=<agenthold_session>'
```

### TypeScript

```typescript
const url = '<base-url>/api/v1/me/provider-logins/<provider>';
const options = {
  method: 'DELETE',
  headers: {cookie: 'agenthold_session=<agenthold_session>'}
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "<base-url>/api/v1/me/provider-logins/<provider>"

headers = {"cookie": "agenthold_session=<agenthold_session>"}

response = requests.delete(url, headers=headers)

print(response.text)
```

## Responses

### 204

Disconnected.

### 404

Error.

#### Example

```json
{
  "error": "string"
}
```

- `error` (`disconnectProviderLogin.response.404.error`; string, required)


Source: https://agenthold.dev/api/disconnect-provider-login/index.md
