> ## Documentation Index
> Fetch the complete documentation index at: https://docs.deeppcb.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Undo, Save and Discard

> How edits to a board become permanent in DeepPCB, and how to undo, redo or discard them before they do.

An edit in the board editor does not touch the saved board straight away. It waits as a pending change until you save it, which is what makes undo and discard possible.

## Work with pending edits

**1. Make an edit**

Make any change on the board — for example, unprotect a component and drag it somewhere else (see [Protect / Unprotect Components](https://docs.deeppcb.com/tutorials/how-to/protect-unprotect-components.md) and [Move, Rotate and Flip Components](https://docs.deeppcb.com/tutorials/how-to/move-rotate-flip-components.md)). As soon as there is a pending edit, **Undo**, **Redo**, **Save** and **Discard** appear in the toolbar at the top left of the board.

<video autoPlay muted loop playsInline src="https://mintcdn.com/deeppcb/X7Hy0HgSSYrG7K_B/images/how-to/edits-pending.mp4?fit=max&auto=format&n=X7Hy0HgSSYrG7K_B&q=85&s=978809965d50138307224bc233db56dd" />

Unprotecting U1 and dragging it: the edit controls appear in the board toolbar.

**2. Undo and redo**

**Undo** and **Redo** step back and forward through your pending edits, one at a time.

<video autoPlay muted loop playsInline src="https://mintcdn.com/deeppcb/X7Hy0HgSSYrG7K_B/images/how-to/edits-undo.mp4?fit=max&auto=format&n=X7Hy0HgSSYrG7K_B&q=85&s=cb79ecafac29addebcf364a8840143eb" />

Undo puts U1 back; Redo moves it again.

**3. Save**

Click **Save** (the disk icon) to write your pending edits to the board. The next run you start works from the board as you saved it.

**4. Discard**

Click **Discard** (the ✕) to throw away every pending edit and return the board to its last saved state. Revisions you already have are not affected.

<video autoPlay muted loop playsInline src="https://mintcdn.com/deeppcb/X7Hy0HgSSYrG7K_B/images/how-to/edits-discard.mp4?fit=max&auto=format&n=X7Hy0HgSSYrG7K_B&q=85&s=a9c6949217378a885dfcb8b2fd8ba34c" />

Discard drops every pending edit: U1 returns to where it was saved.

> [!NOTE]
>
> Components start out protected, so they cannot be moved until you unprotect them — that unprotect is itself an edit, and it is undone or discarded along with the rest.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.