Skip to main content
Version: 2.0

Delete Chat API Definition

The Delete Chat API lets you permanently delete a chat and all its associated turns. This is useful for data management to help ensure that you maintain data hygiene and support compliance with data retention policies.

Delete Chat Request and Response

To delete a chat, send a DELETE request to /v2/chats/{chat_id}, where {chat_id} is the unique identifier of the chat you want to delete.

The response returns a 204 status code which indicates that the chat was successfully deleted.

REST 2.0 URL

Delete Chat Endpoint Address

Vectara exposes an HTTP endpoint at the following URL to delete a chat:
https://api.vectara.io/v2/chats/:chat_id

The API Reference shows the full Delete Chat REST definition.

gRPC Example

You can find the full Delete Chat gRPC definition at chat.proto.