swift remove annotations from map code example Example: swift remove all pins from mapkit mapView.removeAnnotations(mapView.annotations)