---
id: "packages/active-grid/api/clear-grid-states"
title: "clearAllGridStates"
description: "clearAllGridStates: generated from the source of active-grid."
url: "/packages/active-grid/api/clear-grid-states"
locale: "en"
revision: "g0mvjxwj5c-88bdbe1c:clear-grid-states"
---

# clearAllGridStates

Exported by `@workspace/active-grid`. Generated from the package source; part of [the index of every export](/packages/active-grid/api).

## Functions, hooks and constants

**clearAllGridStates**: `() => void`

Clear all grid state entries from localStorage.

Removes every `active_grid_state_` entry, including the `_locks_` and
`_pins_` variants.

## Only one grid namespace

Keys with any other prefix (such as `grid_state_`) have no writer in this
monorepo and are deliberately not cleared: clearing them would suggest a
second grid namespace that callers have to know about. There is one.
