import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const assistant = await client.ai.assistants.delete('assistant_id');
console.log(assistant.id);{
"id": "<string>",
"object": "<string>",
"deleted": true
}Delete an AI Assistant by assistant_id.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const assistant = await client.ai.assistants.delete('assistant_id');
console.log(assistant.id);{
"id": "<string>",
"object": "<string>",
"deleted": true
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Successful Response
Aligns with the OpenAI API: https://platform.openai.com/docs/api-reference/assistants/deleteAssistant
Was this page helpful?