---
title: "Delete an affiliate link"
method: DELETE
path: "/v2/affiliation/{userId}/links/{linkId}"
tags: ["Affiliations"]
---

# Delete an affiliate link

`DELETE /v2/affiliation/{userId}/links/{linkId}`

## Request

- Base URL: `https://app.metricool.com/api`
- URL: `https://app.metricool.com/api/v2/affiliation/{userId}/links/{linkId}`
- Auth: none declared

## Path parameters

- `userId` integer, required
- `linkId` integer, required

## Response `200`

Link deleted successfully

- JsonOkResponseBoolean
  - `metadata` object
  - `page` JsonPaging
    - `next` string
  - `data` boolean

## Other responses

- `403`: User not authorized or affiliate is banned
- `404`: Affiliate link not found
- `409`: Cannot delete the last affiliate link

---

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