Hello,
We have tried to generate this issue on our local system. We have add some html content on infowindow and update the map. The infowindow content is not removed after updating.
Can you elaborate more about what process you are using when updating the content of infowindow, so we can try this on our local system.
Thanks