# RemoteC.closeAll

Close the script’s remote native sessions.

```js
RemoteC.closeAll()
```

## Arguments

No arguments.

## Returns

No return value (`undefined`).

## Example

```js
RemoteC.closeAll();
```

## Notes

Also invalidates RemoteObjC references in those sessions.

[All JavaScript APIs](https://mcp.applesauceos.com/doc/api.md) · [Automation playbook](https://mcp.applesauceos.com/doc/ai.md)
