---
title: "Delete a link"
method: DELETE
path: "/v1/links/{id}"
tags: ["Links"]
---

# Delete a link

`DELETE /v1/links/{id}`

## Request

- Base URL: `https://api.affiliaterail.com`
- URL: `https://api.affiliaterail.com/v1/links/{id}`
- Auth: HTTP bearer

The link stops being listed and cannot be retrieved again. The URL itself keeps redirecting for anyone still holding it, and its click history stays grouped under it, because deleting a link a partner has already published would break a promise they made to their own audience.

**Scope:** `partners:write` (or `write`)

## Path parameters

- `id` string, required: Prefixed id (`lnk_…`)

## Response `200`

Deleted

- Deleted
  - `id` string, required: Prefixed id (`part_…`)
  - `object` string, required
  - `deleted` true, required

## Other responses

- `400`: Invalid request
- `401`: Missing or unknown API key
- `403`: Key lacks the required scope
- `404`: No such object in your organization
- `422`: The request was understood and refused
- `429`: Rate limited: see Retry-After

---

[API](https://skmtc.dev/affiliaterail/apis/affiliaterail-api.md) · [All operations](https://skmtc.dev/affiliaterail/apis/affiliaterail-api/llms.txt) · [OpenAPI document](https://skmtc.dev/affiliaterail/apis/affiliaterail-api/revisions/ea41f345c092?raw)
