# clearImmediate

Cancel a scheduled callback.

```js
clearImmediate(id)
```

## Arguments

| Argument | Type | Meaning |
| --- | --- | --- |
| `id` | number | ID returned by setImmediate. |

## Returns

No return value (`undefined`).

## Example

```js
const id = setImmediate(() => console.log("later"));
clearImmediate(id);
```

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