import Telnyx from 'telnyx';const client = new Telnyx({ apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted});await client.ai.assistants.versions.delete('version_id', { assistant_id: 'assistant_id' });
Permanently removes a specific version of an assistant. Can not delete main version
DELETE
/
ai
/
assistants
/
{assistant_id}
/
versions
/
{version_id}
JavaScript
Copy
Ask AI
import Telnyx from 'telnyx';const client = new Telnyx({ apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted});await client.ai.assistants.versions.delete('version_id', { assistant_id: 'assistant_id' });