---
url: /process-functions/cube-invalidate.md
description: Invalidates a cube and clears its consolidation cache.
---

# cube.invalidate

Invalidates a cube and clears its consolidation cache.

```js
cube.invalidate(cubeName)
```

## Parameters

| Parameter | Type | Description |
|---|---|---|
| `cubeName` | `string` | The cube's name or id. |

## Examples

```js
cube.invalidate("Profit and Loss");
```
