---
title: "Delete a file"
method: DELETE
path: "/api/notebooks/{notebook}/attachments/{attachment}"
tags: ["notebook-attachment-controller"]
---

# Delete a file

`DELETE /api/notebooks/{notebook}/attachments/{attachment}`

Removes the file from the notebook in one accepted change. Earlier history keeps it.

## Path parameters

- `notebook` integer, required
- `attachment` integer, required

## Response `200`

OK

## Changes

- **2026-09-26** `7ad832d2fbaf` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/nerds-odd-e/apis/openapi-definition/changes/api/notebooks/:notebook/attachments/:attachment/delete.md)

---

[API](https://skmtc.dev/nerds-odd-e/apis/openapi-definition.md) · [All operations](https://skmtc.dev/nerds-odd-e/apis/openapi-definition/llms.txt) · [OpenAPI document](https://skmtc.dev/nerds-odd-e/apis/openapi-definition/revisions/7ad832d2fbaf?raw)
