Type Function Return value none Revision Release 2024.3703 Keywords calendar, event, remove, removeEvent See also calendar.*
calendar.removeEvent()
removes event with specified identifier.
calendar.removeEvent( params )
Table. Table containing call parameters - see next section for details.
Listener. Listener that will receive removingEvent event.
String. Identifier of the event to be removed.
local calendar = require( "plugin.calendar" ) local function removeEventListener( event ) -- check event.isError if required end -- retrieve event id from getEvents or addEvent local someEventId = nil -- Add event with specified properties calendar.removeEvent( { listener = removeEventListener, eventId = someEventId, } )