Completely remove figure and redraw from scratch

I’m using the plotly.js solution to draw a figure that is fed by an array of data. The data array for the chart is updated as a video plays so that the chart is updated at the same time as the video giving it that ‘live chart’ feel. Everything works perfectly until I ‘seek’ in the video to a different position. At this point the figure seems to ‘cache’ the last read position and then starts to redraw the chart from the new position (using the new data fed from the array which is indexed from the spot on the video feed that I ‘seeked’ to). The problem here is that it keeps the ‘last position’ before the seeking event in the chart so the chart looks horrible when updated (see image below). I’ve searched the forums and tried things like completely destroying the chart etc. but for some reason that last plot before seeking stays. So net net desired behavior is…
Upon seeking completely redraw chart with no ‘hangover’ from the previous draw. Any help would be appreciated!