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.scheduledEvents.delete('event_id', { assistant_id: 'assistant_id' });
If the event is pending, this will cancel the event. Otherwise, this will simply remove the record of the event.
DELETE
/
ai
/
assistants
/
{assistant_id}
/
scheduled_events
/
{event_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.scheduledEvents.delete('event_id', { assistant_id: 'assistant_id' });