Delete Chat

Deletes a specific chat based on the provided chatId. This operation is irreversible and permanently removes the chat and its contents.

DELETE /chats/{chatId}
import { v0 } from 'v0-sdk'

const result = await v0.chats.delete({
  chatId: '123',
})

console.log(result)
DELETE /chats/{chatId}
curl -X DELETE https://api.v0.dev/chats/123 \
  -H "Authorization: Bearer $V0_API_KEY" \
  -H "Content-Type: application/json"

Parameters

Path Parameters

chatId string Required

The unique identifier of the chat to delete. This must be passed as a path parameter in the URL.


Response

Response Body

id string Required


object string Required


deleted boolean Required