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

# release

APISummary
Release the `Native` memory held by the current `TemplateBundle` object. After executing the `release` method, the `TemplateBundle` will become the `inValid` state.

## Syntax

### Android

```java
public void release();
```

### Desktop (C++)

Desktop C++ API does not expose a standalone `release()` method. `LynxTemplateBundle` releases the underlying handle in its destructor:

```cpp
{
  lynx::pub::LynxTemplateBundle bundle(content, length, dtor, opaque);
}  // release happens in ~LynxTemplateBundle()
```

## Compatibility

**Compatibility Table**

**Query:** `lynx-native-api.template-bundle.release`

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-native-api/template-bundle/release.json)

| Feature | Android | HarmonyOS | iOS | macOS | Windows | Web |
| --- | --- | --- | --- | --- | --- | --- |
| release | Yes (2.8) | No | No | Yes (3.7) | Yes (3.7) | No |

**`release`**

Release the Native memory held by the current TemplateBundle object. After executing the release method, the TemplateBundle will become the inValid state.

**Specifications:**

