# ClearAll()

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

## Definition

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

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