# prov.mandate.grants.clearHolderBinding

prov.mandate.grants.clearHolderBinding in Node SDK. Put an agent back on the default holder binding.

## Signature

```ts
prov.mandate.grants.clearHolderBinding(agentId: string): Promise<{ id: string; object: "holder_binding"; deleted: true }>
```

## Parameters

- `agentId` (string)

## Returns

`Promise<{ id: string; object: "holder_binding"; deleted: true }>`

## HTTP operation

[`DELETE /v1/mandate/holder_bindings/{agent_id}`](https://provenanceauth.com/docs/api/grants.md#delete-v1-mandate-holder-bindings-agent-id): Clear an agent's holder binding

## Errors

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`insufficient_scope`](https://provenanceauth.com/docs/platform/errors.md#insufficient_scope)
- [`insufficient_role`](https://provenanceauth.com/docs/platform/errors.md#insufficient_role)
- [`resource_missing`](https://provenanceauth.com/docs/platform/errors.md#resource_missing)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)

## Example

**Node**

```ts
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/mandate/holder_bindings/agt_01M7Z71YM4GVGFZ5D6PQQE0VZN`, {
  method: "DELETE",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" },
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
data = httpx.delete(f"{api}/v1/mandate/holder_bindings/agt_01M7Z71YM4GVGFZ5D6PQQE0VZN", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}).json()
```
