Skip to main content

system.kanoa.schedule.deleteScheduleBlocks

Description

Deletes all schedule blocks for the given parameters. Formerly called 'deleteLineScheduleInfoFromTable'.

Syntax

deleteScheduleBlocks(assetId, startDate, endDate, userId)

Parameters:
  • assetId (int): Asset ID.
  • startDate (datetime): Start date for the deletion.
  • endDate (datetime): End date for the deletion.
  • userId (int): User ID.

  • Returns:
  • recordsModified (int): Number of records modified.
  • Code Examples

    # Example Usage:
    asset_id = 123
    start_date = ...
    end_date = ...
    user_id = 456
    records_modified = system.kanoa.schedule.deleteScheduleBlocks(asset_id, start_date, end_date, user_id)