Delete a scheduled event
If the event is pending, this will cancel the event. Otherwise, this will simply remove the record of the event.
DELETE
JavaScript
JavaScript
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Check out our upcoming events and meetups! View events →
If the event is pending, this will cancel the event. Otherwise, this will simply remove the record of the event.
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' });{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Was this page helpful?
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' });{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}