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

# Delete a link

> Stop a link right away.

The link stops working immediately: its page shows *This agent isn't available.* A call already in progress on it carries on until it ends.

**Authorization** `string` *required*

`Bearer tav_…`, your API key.

**agentId** `string` *required*

The voice agent's ID.

**linkId** `string` *required*

The link's `id`.

### Response

**data.id** `string`

The deleted link's ID.

```bash cURL theme={null}
curl -X DELETE https://backend.talking-avatar.dev/api/talking-avatar/voice-agents/AGENT_ID/links/LINK_ID \
  -H "Authorization: Bearer $TALKING_AVATAR_API_KEY"
```

```js Node.js (SDK) theme={null}
import { deleteAgentLink } from "@interviewflowai/talking-avatar/server";

await deleteAgentLink({ apiKey: process.env.TALKING_AVATAR_API_KEY, agentId: "AGENT_ID", linkId: "LINK_ID" });
```

```json 200 theme={null}
{
  "data": { "id": "6f2c1b0e-4d7a-4a51-9a3e-2b8c7d1e9f40" },
  "code": 200,
  "message": "Link deleted"
}
```

```json 404 theme={null}
{ "code": 404, "message": "Link not found" }
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.