import Whop from '@whop/sdk';
const client = new Whop({
apiKey: process.env['WHOP_API_KEY'], // This is the default and can be omitted
});
const aiChat = await client.aiChats.delete('aich_xxxxxxxxxxxxx');
console.log(aiChat);trueDelete an AI chat thread so it no longer appears in the user’s chat list.
Required permissions:
ai_chat:deleteimport Whop from '@whop/sdk';
const client = new Whop({
apiKey: process.env['WHOP_API_KEY'], // This is the default and can be omitted
});
const aiChat = await client.aiChats.delete('aich_xxxxxxxxxxxxx');
console.log(aiChat);trueA company API key, company scoped JWT, app API key, or user OAuth token. You must prepend your key/token with the word 'Bearer', which will look like Bearer ***************************
The unique identifier of the AI chat to delete (e.g., "ai_chat_XXXXX").
"aich_xxxxxxxxxxxxx"
A successful response
Represents true or false values.
Was this page helpful?