---
title: "Delete conversation."
method: DELETE
path: "/api/v1/projects/{projectId}/conversations/{sessionId}"
tags: ["Conversations"]
---

# Delete conversation.

`DELETE /api/v1/projects/{projectId}/conversations/{sessionId}`

## Request

- Base URL: `https://app.customgpt.ai`
- URL: `https://app.customgpt.ai/api/v1/projects/{projectId}/conversations/{sessionId}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/poll-the-people/apis/customgpt-ai/docs/api/v1/projects/:projectId/conversations/:sessionId/delete.ts> (a function with typed inputs; its response is checked against the schema)

Permanently deletes a conversation and all its messages. Use this to remove sensitive conversations or clean up test data.

Warning: This action cannot be undone. All messages in the conversation will be permanently deleted.

## Path parameters

- `projectId` integer, required
- `sessionId` string, required

## Response `200`

Agent deleted successfully

- object
  - `status` 'error' | 'success': The status of the response
  - `data` object
    - `deleted` boolean: Whether the agent was deleted successfully or not

## Other responses

- `400`: Bad Argument
- `401`: API Token is either missing or invalid
- `404`: Agent not found
- `429`: Too many requests. You have exceeded your API rate limit.
- `500`: Internal Server Error

## Changes

- **2026-11-03** `77aab4354382`: 4 warning, 1 info
  - added the new `422.00` enum value to the `data/code` response property for the response status `400`
  - added the new `422.00` enum value to the `data/code` response property for the response status `401`
  - added the new `422.00` enum value to the `data/code` response property for the response status `404`
  - added the new `422.00` enum value to the `data/code` response property for the response status `500`
  - …1 more
- **2026-07-17** `b80e6dfcf78d`: 2 warning, 2 info
  - added the new `Agent id is required` enum value to the `data/message` response property for the response status `404`
  - added the new `Agent with id {projectId} not found` enum value to the `data/message` response property for the response status `404`
  - removed the `Project id is required` enum value from the `data/message` response property for the response status `404`
  - removed the `Project with id {projectId} not found` enum value from the `data/message` response property for the response status `404`
- **2023-07-27** `2cd2d58839d0`: 1 info
  - added the non-success response with the status `400`
- …earlier changes not shown

[Operation history](https://skmtc.dev/poll-the-people/apis/customgpt-ai/changes/api/v1/projects/:projectId/conversations/:sessionId/delete.md)

---

[API](https://skmtc.dev/poll-the-people/apis/customgpt-ai.md) - [All operations](https://skmtc.dev/poll-the-people/apis/customgpt-ai/llms.txt) - [OpenAPI document](https://skmtc.dev/poll-the-people/apis/customgpt-ai/revisions/77aab4354382?raw)
