<!--
{
  "availability" : [
    "MapKit JS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKitJS",
  "identifier" : "/documentation/MapKitJS/Map/removeItems",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "MapKit JS"
    ],
    "preciseIdentifier" : "instm/mapkit.Map/removeItems"
  },
  "title" : "removeItems(items)"
}
-->

# removeItems(items)

Removes a collection of annotations, overlays, or other item collections from the map.

```
removeItems(items: (Overlay | Annotation)[]): (Annotation | Overlay)[];
```

## Parameters

`items`

An array of annotations, overlays, or the data returned from [`importGeoJSON(data, callback)`](/documentation/MapKitJS/mapkit/importGeoJSON) to display on the map.

## Return Value

Returns an array of items removed from the map.

## Discussion

This method doesn’t change the map’s visible region. Use [`showItems(items, options)`](/documentation/MapKitJS/Map/showItems) with a list of items to focus on to update the map’s view.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)