---
title: clearTimeout
summary: The clearTimeout() method cancels a timeout previously established by calling setTimeout(). If the parameter provided does not identify a previously established action, this method does nothing.
url: https://www.fastly.com/documentation/reference/compute/sdks/javascript/js-compute/globals/fn.clearTimeout/
---

**Kind:** Function  
**Module:** [globals](https://www.fastly.com/documentation/reference/compute/sdks/javascript/js-compute/globals/)  
**Package:** @fastly/js-compute 4.0.1  
**Source:** https://github.com/fastly/js-compute-runtime/blob/70cf30af4e657879b2d1e7eafab880e39e3a3f7d/types/globals.d.ts#L2144

```javascript
clearTimeout(timeoutID?: number): void
```

The clearTimeout() method cancels a timeout previously established by calling setTimeout(). If the parameter provided does not identify a previously established action, this method does nothing.

**See also**

- [clearTimeout on MDN](https://developer.mozilla.org/en-US/docs/Web/API/clearTimeout)

**Parameters**

- `timeoutID`: `number` (optional) — The identifier of the timeout you want to cancel. This ID was returned by the corresponding call to setTimeout().

**Returns**

`void`
