Gantt APIMethodsclearAllOn this pageclearAll Description Removes all tasks and additional elements (including markers) from the Gantt chart clearAll: () => voidExample// reloads data in the Gantt chartgantt.load("url1");gantt.clearAll(); /*!*/gantt.load("url2");/*!*/DetailsNote, the method invokes the onClear event.Related API onClear Related Guides Basic Operations with Tasks