# clearTimeout

Cancel a scheduled callback.

```js
clearTimeout(id)
```

## Arguments

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

## Returns

No return value (`undefined`).

## Example

```js
const id = setTimeout(() => console.log("later"), 1000);
clearTimeout(id);
```

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