---
title: "removeAnnotations(_:)"
framework: mapkit
role: symbol
role_heading: Instance Method
path: "mapkit/mkmapview/removeannotations(_:)"
---

# removeAnnotations(_:)

Removes an array of annotation objects from the map view.

## Declaration

```swift
func removeAnnotations(_ annotations: [any MKAnnotation])
```

## Parameters

- `annotations`: The array of annotations to remove. Objects in the array need to conform to the doc://com.apple.mapkit/documentation/MapKit/MKAnnotation protocol.

## Discussion

Discussion If any annotation object in the array has an associated annotation view, and if that view has a reuse identifier, this method removes the annotation view and queues it internally for later reuse. You can retrieve queued annotation views (and associate them with new annotations) using the dequeueReusableAnnotationView(withIdentifier:) method. Removing annotation objects disassociates them from the map view entirely, preventing the map view from displaying them on the map. Typically, you call this method only when you want to hide or delete the specified annotations.

## See Also

### Annotating the map

- [annotations](mapkit/mkmapview/annotations.md)
- [addAnnotation(_:)](mapkit/mkmapview/addannotation(_:).md)
- [addAnnotations(_:)](mapkit/mkmapview/addannotations(_:).md)
- [removeAnnotation(_:)](mapkit/mkmapview/removeannotation(_:).md)
- [annotations(in:)](mapkit/mkmapview/annotations(in:).md)
