---
title: "Permanently delete an empty draft session"
method: DELETE
path: "/sessions/{id}/hard-delete-empty"
tags: ["Sessions"]
---

# Permanently delete an empty draft session

`DELETE /sessions/{id}/hard-delete-empty`

Permanently delete a draft or discarded session from the database if it is truly empty.
A session is considered empty if it has no meaningful content (no title, no query, default model, no editor state).

## Path parameters

- `id` string, required

## Response `204`

Empty draft session permanently deleted

## Other responses

- `400` — Session is not empty or not a draft/discarded
- `404` — Resource not found
- `500` — Internal server error

## Changes

- **2025-10-16** `a1c0e134c4c8` — 1 info
  - endpoint added
- **2025-10-16** `6f2ef131e921` — 1 breaking
  - api path removed without deprecation
- **2025-10-08** `cf6ffbe3a5db` — 1 info
  - endpoint added
- **2025-08-05** `f3a20bfa8bea` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/humanlayer/apis/humanlayer-daemon-rest-api/changes/sessions/:id/hard-delete-empty/delete.md)

---

[API](https://skmtc.dev/humanlayer/apis/humanlayer-daemon-rest-api.md) · [All operations](https://skmtc.dev/humanlayer/apis/humanlayer-daemon-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/humanlayer/humanlayer-daemon-rest-api/revisions/02da8cb8aa12/schema)
