---
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}`

## Request

- Base URL: `` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/notebooks/{notebook}/attachments/{attachment}`
- Auth: none declared

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

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

---

[API](https://skmtc.dev/nerds-odd-e/apis/odd-e-open-api.md) - [All operations](https://skmtc.dev/nerds-odd-e/apis/odd-e-open-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nerds-odd-e/apis/odd-e-open-api/revisions/193c5e89085a?raw)
