---
title: "Delete a folder"
method: DELETE
path: "/folders/{id}"
tags: ["folders"]
---

# Delete a folder

`DELETE /folders/{id}`

## Request

- Base URL: `https://freshjots.com/api/v1`
- URL: `https://freshjots.com/api/v1/folders/{id}`
- Auth: HTTP bearer

Notes inside it move to the owner's built-in `default` folder. Built-in folders (default, Heartbeats, ai_sessions) refuse deletion with 422.

## Path parameters

- `id` integer, required

## Headers

- `Idempotency-Key` string

## Response `204`

Deleted.

## Other responses

- `401`: Missing, invalid, revoked or expired bearer token (`unauthenticated`).
- `403`: The token's scope or plan does not allow this (`forbidden`).
- `404`: No such record in this token's scope (`not_found`).
- `422`: Bad input (`validation_failed`, `note_locked`, `content_type_mismatch`, `storage_cap_exceeded`, `encrypted_team_unsupported`).
- `429`: Throttled (`rate_limited`); honour Retry-After.
- `503`: Backend temporarily unreachable; retry with backoff (`service_unavailable`).

---

[API](https://skmtc.dev/freshjots/apis/fresh-jots-api.md) · [All operations](https://skmtc.dev/freshjots/apis/fresh-jots-api/llms.txt) · [OpenAPI document](https://skmtc.dev/freshjots/apis/fresh-jots-api/revisions/2708284fa25a?raw)
