Skip to main content

system.kanoa.schedule.deleteScheduleBlock

This function requires KanoaOPS module

Description

Deletes a schedule block. Formerly called 'deleteLineScheduleEvent'.

Syntax

deleteScheduleBlock(scheduleBlockId, userId)
  • Parameters
      scheduleBlockId (int) - ID of the schedule block to delete.
      userId (int) - User ID.
  • Returns
      # of records modified.
  • Code Example

    # Example Usage:
    schedule_block_id = 789
    user_id = 101
    records_modified = system.kanoa.schedule.deleteScheduleBlock(schedule_block_id, user_id)