How to refresh gantt

I am using json data for gantt currently when some data is change and I am drawing gantt again its previous data is not deleted so the same data is showing 2 times when making the gantt again.

You need to call gantt.clearAll() to delete the previous data from the gantt.