Working with Map > Classes > MapLayer > MapLayer.clearVisualItems
clearVisualItems();
The clearVisualItems method deletes factors from the map layer.
The example of use is given on the page with description of the MapLayer.PlaceVisualsOneByOne property.
See also: