# ClearAll()

> Removes all undo and redo operations from respectively the undo and redo stacks.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.0/script-reference/unityeditor.md)
* **Assembly:** UnityEditor

```csharp
public static void ClearAll()
```
