API ReferenceChats
Delete Chat
Deletes a chat and all its associated messages and blocks. The requester must have edit access to the chat.
v2 of the v0 API is currently in beta and not yet ready for production. There may be breaking changes.
DEL/v2/chats/{chatId}
Usage
TypeScript Example
import { v0 } from 'v0'const result = await v0.chats.delete({ chatId: 'chat_abc123',})console.log(result)API Signature
Request
Path Parameters
chatId: string
The unique identifier of the chat.
Response
chatId: string
The ID of the deleted chat.
success: 'true'