--- method: DELETE path: /api/collections/:id auth: jwt area: collections --- # Delete Collection Deletes a collection. Membership rows go with it; the books themselves are untouched. Success is **204 No Content** — there is no response body. (htmx requests receive a small HTML redirect snippet instead; that behavior is web-internal.) ## Example request ```text DELETE /api/collections/550e8400-e29b-41d4-a716-446655440000 ``` ## Errors | Status | Body | When | | ------ | ---- | ---- | | 400 | `{"error": "invalid collection id"}` | malformed id | | 500 | `{"error": "..."}` | unexpected server error |