> For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt.

# removeCDPEventListener

APISummary
Removes a listener for [CDP](https://chromedevtools.github.io/devtools-protocol/) **Event** messages.

This method is the counterpart to [`addCDPEventListener`](/next/api/lynx-devtool-native-api/lynx-base-inspector-owner/add-cdp-event-listener.md). You should call it to remove the listener when you no longer need to listen for messages.

## Syntax

### iOS

```objective-c title="LynxBaseInspectorOwner.h"
- (void)removeCDPEventListener:(nonnull NSString *)name;
```

### Android

```java title="LynxBaseInspectorOwner.java"
void removeCDPEventListener(final String name);
```

### Parameters

- `name`: The unique identifier of the listener, consistent with the `name` passed in [`addCDPEventListener`](/next/api/lynx-devtool-native-api/lynx-base-inspector-owner/add-cdp-event-listener.md#parameters).

## Usage Example

Please refer to [`CDPEventListener`](/next/api/lynx-devtool-native-api/cdp-event-listener.md#usage-example).

## Compatibility


**Compatibility Table**
**Query:** `lynx-devtool-native-api.lynx-base-inspector-owner.remove-cdp-event-listener`

**Platform Support**

| Platform | Version Added | Notes |
|----------|---------------|-------|
| Android | 3.5 | - |
| iOS | 3.5 | - |
| Web | ❌ No | - |

**Description:** removeCDPEventListener

