Skip to main content

system.kanoa.schedule.deleteScheduleBlock

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:
  • recordsModified (int): Number of records modified.
  • Code Examples

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