# Disconnect an AI client.

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

DELETE

/v1/user/connected-clients/{grant\_id}

Select code samplecURL (shell:curl)

```js
const url = 'https://app.everruns.com/api/v1/user/connected-clients/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';
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/user/connected-clients/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0
```

* Production APIapp.everruns.com/api/v1/user/connected-clients/{grant\_id}

Revokes the grant: the client’s refresh tokens are deleted and `/mcp` rejects its access tokens within about 30 seconds. Reconnecting needs a new approval.

## Parameters

### Path Parameters

**grant\_id**

required

string format: uuid

Connected client (grant) id

## Responses

### 204

Revoked

### 401

Authentication required

### 404

Not found