---
name: "links_delete"
area: "links"
title: "Delete a short link"
price: "free"
method: "POST"
url: "https://api.conecto.chat/v1/tools/links_delete"
mcp_server: "https://api.conecto.chat/mcp/links"
auth: "Authorization: Bearer <conecto_sk_ key>"
docs_url: "https://conecto.chat/tools/links/links_delete"
---

# Delete a short link (`links_delete`)

Deletes a short link for good; its code never opens anything again.

Delete a short link for good. Its code stays retired, so it never opens anything again.

Price: Free. A call that fails costs nothing.

## Use it when

A link should stop working forever. To stop it for a while, pause it with links_update.

## Say this to your agent

> Delete the short link from last year's summer flyer.

## Inputs

| Name | Type | Required | Description | Allowed values | Default |
|---|---|---|---|---|---|
| `code` | string | yes | The code after cncto.co/, e.g. "x7Kp2Qa". 3 to 40 characters. |  |  |

## Example

Written for Halverson Cycle & Repair, a bike shop with a repair workshop in Portland, Oregon.

MCP: call `links_delete` on the MCP server `https://api.conecto.chat/mcp/links` with these arguments:

```json
{
  "code": "summer-sale"
}
```

REST:

```bash
curl https://api.conecto.chat/v1/tools/links_delete \
  -H "Authorization: Bearer $CONECTO_KEY" \
  -H "Content-Type: application/json" \
  -d '{"code": "summer-sale"}'
```

## Response

```json
{
  "call_id": "5f0c8a2e-3b7d-4c1e-9a64-2d8e1f7b0c93",
  "tool": "links_delete",
  "status": "succeeded",
  "replayed": false,
  "cost_usd": "$0.00",
  "balance_usd": "$19.75",
  "result": {
    "deleted": "summer-sale"
  }
}
```

`result`: deleted: the code.

## Errors

| Code | Status | When | Fix |
|---|---|---|---|
| `not_found` | 404 | No short link of the business has that code. | Call links_list and use one of its codes. |

The refusals every tool can give (401 key, 402 balance, 429 limits) are on the errors page: https://conecto.chat/docs/errors.md

## Related

- [qr_create](https://conecto.chat/tools/links/qr_create.md): A QR code for a link or any text, saved in the file store as a PNG or SVG with a download link. $0.01 a call.
- [links_shorten](https://conecto.chat/tools/links/links_shorten.md): A short link at cncto.co/<code> that sends people on and counts the clicks. $0.01 a call.
- [links_list](https://conecto.chat/tools/links/links_list.md): The business's short links, newest first, with their clicks. Free up to 1,000,000 reads a month.
- [links_get](https://conecto.chat/tools/links/links_get.md): One short link: where it goes, its clicks and the last click. Free up to 1,000,000 reads a month.
- [links_update](https://conecto.chat/tools/links/links_update.md): Sends a short link somewhere else, retitles it, or pauses and resumes it. $0.01 a call.
