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

# unsubscribeMessage

APISummary
Unsubscribes from debugging messages of a specified type.

This method is the counterpart to [`subscribeMessage`](/next/api/lynx-devtool-native-api/lynx-base-inspector-owner/subscribe-message.md). You should call it to unsubscribe when you no longer need to receive a certain type of messages.

## Syntax

### iOS

```objective-c title="LynxBaseInspectorOwnerNG.h"
- (void)unsubscribeMessage:(nonnull NSString *)type;
```

### Android

```java title="LynxBaseInspectorOwnerNG.java"
void unsubscribeMessage(String type);
```

### Harmony

```ts title="LynxBaseInspectorOwner.ets"
unsubscribeMessage(type: string): void;
```

### Parameters

- `type`: The type of message to unsubscribe from.

## Usage Example

Please refer to [`subscribeMessage`](/next/api/lynx-devtool-native-api/lynx-base-inspector-owner/subscribe-message.md#usage-example).

## Compatibility

**Compatibility Table**

**Query:** `lynx-devtool-native-api.lynx-base-inspector-owner.unsubscribe-message`

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-devtool-native-api/lynx-base-inspector-owner/unsubscribe-message.json)

| Feature | Android | HarmonyOS | iOS | macOS | Windows | Web |
| --- | --- | --- | --- | --- | --- | --- |
| unsubscribe-message | Yes (3.0) | Yes (3.8) | Yes (3.0) | Unknown | Unknown | No |

**`unsubscribe-message`**

unsubscribeMessage

