Search...
deleteScheduleItem( )
Deletes schedule items from the draft schedule.
Admin Method
This function requires elevated permissions to run. This function is not universal and runs only on the backend.
Syntax
function deleteScheduleItem(eventId: string, options: DeleteScheduleItemOptions): Promise<void>
deleteScheduleItem Parameters
NAME
TYPE
DESCRIPTION
eventId
string
Event ID to which the schedule belongs.
options
Optional
DeleteScheduleItemOptions
Optional fields.
Returns
Return Type:
Promise<
void
>Was this helpful?
deleteScheduleItem example
Copy Code
1import { schedule } from 'wix-events.v2';23 async function deleteScheduleItem(eventId, options) {4 try {5 const result = await schedule.deleteScheduleItem(eventId, options);67 return result;8 } catch (error) {9 console.error(error);10 // Handle the error11 }12 }13