---
title: "Delete Conversation Endpoint"
method: DELETE
path: "/v1/conversations/{conversation_id}"
tags: ["Conversations"]
---

# Delete Conversation Endpoint

`DELETE /v1/conversations/{conversation_id}`

## Request

- Base URL: `https://api.pharia.example.com`
- URL: `https://api.pharia.example.com/v1/conversations/{conversation_id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/aleph-alpha/apis/stateful-responses/docs/v1/conversations/:conversation_id/delete.ts> (a function with typed inputs; its response is checked against the schema)

Delete a conversation and all its history entries.

Soft-delete by default. When ``hard_delete=True`` and the caller is an
admin, the conversation and all associated history entries are permanently
removed from the database.

Admin access: when the caller is an admin, ownership checks are bypassed,
allowing cross-user deletion.

## Path parameters

- `conversation_id` string, required

## Query parameters

- `hard_delete` boolean

## Response `200`

Successful Response

- unknown

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `413`: Content Too Large
- `422`: Validation errors are returned as 400, not 422. This entry exists because FastAPI generates it automatically.
- `425`: Too Early
- `500`: Internal Server Error
- `501`: Not Implemented
- `502`: Bad Gateway
- `504`: Gateway Timeout

---

[API](https://skmtc.dev/aleph-alpha/apis/stateful-responses.md) - [All operations](https://skmtc.dev/aleph-alpha/apis/stateful-responses/llms.txt) - [OpenAPI document](https://skmtc.dev/aleph-alpha/apis/stateful-responses/revisions/2747297acb54?raw)
