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

# removeEventListener(eventType, listener, thisObject)

Unsubscribes a listener function from an event type.

```
removeEventListener(
        eventType?: string,
        listener?: MapKitEventListener,
        thisObject?: object | null,
    ): boolean;
```

## Parameters

`type`

The type of event, for example, a `"configuration-change"`.

`listener`

The callback function to remove. Not setting this parameter removes all listeners of the specified type.

`thisObject`

An object MapKit JS sets as the `this` keyword on the `listener` function.

## Discussion

Unlike a DOM `EventTarget`, a [`MapKitEventTarget`](/documentation/MapKitJS/MapKitEventTarget) doesn’t go through bubbling or capturing phases. The system also interprets the second and the third parameters differently from the DOM’s `EventTarget`.

---

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)