---
title: "Detach"
method: DELETE
path: "/api/cards/{card_id}/attachments/{attachment_id}"
tags: ["dashboards"]
---

# Detach

`DELETE /api/cards/{card_id}/attachments/{attachment_id}`

## Request

- Base URL: `https://app.ctlsurf.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.ctlsurf.com/api/cards/{card_id}/attachments/{attachment_id}`
- Auth: HTTP bearer

Detach a document from the card. The file itself is kept.

## Path parameters

- `card_id` string, uuid, required
- `attachment_id` string, uuid, required

## Response `204`

Successful Response

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/ctlsurf/apis/notebook-control-plane.md) · [All operations](https://skmtc.dev/ctlsurf/apis/notebook-control-plane/llms.txt) · [OpenAPI document](https://skmtc.dev/ctlsurf/apis/notebook-control-plane/revisions/ddfbbe20d5ce?raw)
