I'm working with Cesium to draw and display polygons. I was able to create a webapp that allows you to draw a custom polygon on the Cesium globe, and then saves it by storing it in the database and generating CZML to be displayed by Cesium. I'm running into an issue when I try to delete the object. I'm currently using the CesiumViewerWidget along with onSelectObject to highlight the different CZML polygons on the globe. However, after deleting the object, I can't seem to get the CesiumViewerWidget to remove just the selected polygon without a complete page refresh. I am able to delete the polygon from the database just fine, but by using the selectedObject I can't seem to cause Cesium to stop showing the polygon after it has been deleted from the DB.
Any ideas as to how this can be done? I have been able to dynamically add polygons to the globe (without refresh) using addCzml, but there doesn't appear to be something other than removeAllCzml for removing objects from being displayed.
Any help would be greatly appreciated.