# RemoteObjC.closeAll

Close remote native clients created by this script.

```js
RemoteObjC.closeAll()
```

## Arguments

No arguments.

## Returns

No return value (`undefined`).

## Example

```js
RemoteObjC.closeAll();
```

## Notes

Start with [Objective-C step by step](/doc/objc). Invalidates shared RemoteC references too. May throw a cleanup error.

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