swift remove all pins from mapkit

Swift
mapView.removeAnnotations(mapView.annotations)

Source

Also in Swift: