Markers are stored in the markermanager inside the map. A map has one markerManager by default, but you can add more with map.addMarkerManager(new MarkerManager()).
You can then work with the markers stored in the markermanager by accessing the corresponding markermanager directly by refering to the index (0 by default) in the getMarkerManager() method. For the removeMarker(marker) method, you need to have the marker class object you want to delete as a reference.
You can find information on every method/class you need here :