Skip to main content

deleteCalendar()

Description

Removes a calendar by its ID

Usage

deleteCalendar({ id: string | number }): void;

Parameters

  • id - (required) an ID of the current calendar

Example

// create Event Calendar
const calendar = new eventCalendar.EventCalendar("#root", {
// configuration parameters
});
// delete calendar with the "work" ID
calendar.deleteCalendar({
id: "work"
});