> For the complete documentation index, see [llms.txt](https://osl.mistium.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://osl.mistium.com/legacy-osl-originos/networking/iframes/.iframeclose.md).

# iframeClose

> ⚠️ **Not implemented in the current OSL CLI.**

## Description

`iframeClose` destroys an iframe and frees its resources. After closing, the iframe id is no longer valid and cannot be shown again - create a new one with [`.iframeNew()`](/legacy-osl-originos/networking/iframes/.iframenew.md) if needed.

## Parameters

`iframeClose` takes no parameters; it is called on an iframe id returned by [`.iframeNew()`](/legacy-osl-originos/networking/iframes/.iframenew.md).

## Usage

```javascript
frame = "https://example.com".iframeNew()

frame.iframeClose()
// the iframe is removed and its id is no longer usable
```
