The clearSelection() method clears the active time range selection in the JavaScript Gantt Chart component.
DayPilot.Gantt.clearSelection()
gantt.clearSelection();
DayPilot.Gantt Class
Availability of this API item in DayPilot editions: