---
title: "Remove a link from a thread (p5,"
method: DELETE
path: "/accountant/messages/{threadId}/links/{linkId}"
tags: ["Accountant Portal"]
---

# Remove a link from a thread (p5,

`DELETE /accountant/messages/{threadId}/links/{linkId}`

## Request

- Base URL: `https://api.medianfi.com/api/v1`
- URL: `https://api.medianfi.com/api/v1/accountant/messages/{threadId}/links/{linkId}`
- Auth: HTTP bearer

## Path parameters

- `threadId` string, uuid, required
- `linkId` string, uuid, required

## Response `204`

Removed

## Other responses

- `401`: Authentication required
- `403`: Insufficient permissions or not a company member
- `404`: Resource not found
- `422`: Request failed validation

## Changes

- **2026-11-26** `4a2098becaf9`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/medianfi/apis/median-api/changes/accountant/messages/:threadId/links/:linkId/delete.md)

---

[API](https://skmtc.dev/medianfi/apis/median-api.md) - [All operations](https://skmtc.dev/medianfi/apis/median-api/llms.txt) - [OpenAPI document](https://skmtc.dev/medianfi/apis/median-api/revisions/4f4c2d34276b?raw)
