---
title: "edit.purgeUndo: Undo — Motion kit command — Kition"
description: "Clears the whole undo history (Edit › Purge › Undo); earlier states can no longer be restored. Changes no content."
canonical: "https://developer.kition.ai/docs/kits/motion/commands/edit.purgeUndo"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/motion/commands/edit.purgeUndo](https://developer.kition.ai/docs/kits/motion/commands/edit.purgeUndo)

# edit.purgeUndo

**Undo.** Clears the whole undo history (Edit › Purge › Undo); earlier states can no longer be restored. Changes no content.

- Kit: Motion 0.1.0 (.kmotion); reference: [Motion kit commands](https://developer.kition.ai/docs/kits/motion.md)
- Changes the document: yes

## Parameters

None.

## Call through motion_run

```text
motion_run {
  "path": "<file>.kmotion",
  "steps": [{ "command": "edit.purgeUndo" }]
}
```

The required parameters, with placeholders for their types: not a tested example. motion_run answers the step’s result in `completed[i].result`.

## Result

The kit gives no result schema for this command.

Generated from the command list of @kition/motion-darwin-arm64@0.1.0 and the kit itself (motion_commands through @kition/cli@0.1.1, built from KitionAI/kition-motion@4719aa7).
