---
title: "undo"
canonical: "https://help.vicon.com/space/ShogunPost118/544282935/undo"
format: markdown
---
# Description

Enables you to return your scene file to its state immediately prior to a single previous operation, or many recent operations.

Undo is a staple command of virtually all computer software. Shogun Post maintains a history stack of 20 operations, and enables you to undo in one step an optional [nLevels] number of those operations.

## Functional area

System

# Command syntax

## Syntax

|  |
| --- |
| `undo [depth][-enable] [-disable]` |

### Arguments

| **Name** | **Type** | **Required** | **Comments** |
| --- | --- | --- | --- |
| `depth` |  | No | Specifies the number of previous operations to undo in one step |

### Flags

| **Name** | **Flag arguments** | **Argument type** | **Exclusive to** | **Comments** |
| --- | --- | --- | --- | --- |
| `enable` | 0 | — | disable | — |
| `disable` | 0 | — | enable | — |

## Return value

void

## Examples

```plaintext
undo; //undo the previous operation
undo 6; // undo the previous 6 operations.
```

# Additional information

## Related commands

- [bakeData](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost118/pages/544278966)
- [redo](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost118/pages/544281435)
- [undoConsolidated](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost118/pages/544282942)