---
hide_title: false
hide_table_of_contents: false
pagination_next: null
pagination_prev: null
---
# Map.prototype.clear()

The **`clear()`** method removes all elements from a `Map` object.

## Syntax

```js
clear()
```

### Return value

[`undefined`](../../../globals/undefined.mdx).
