> For the complete documentation index, see [llms.txt](https://docs.rainbird.ai/rainbird/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.rainbird.ai/rainbird/knowledge-modelling/modelling-features/other-features/undo-and-redo.md).

# Undo and Redo

## Overview

Undo and redo lets you reverse and reapply changes while editing your knowledge map.

This makes it safer to experiment with Co-author or when manually editing, as you can step back accidental changes without manually rebuilding anything.

## Undo a change

Click **Undo** in the editor toolbar.

Each click reverses one change.

## Redo a change

Click **Redo** in the editor toolbar.

Redo reapplies the last change you undid.

A brief notification confirms each action. For example, `Undone: Add relationship`.

## What undo and redo covers

Undo and redo covers changes to the **core logic** of your draft knowledge map.

Each action is one undo step. A rule update with 20 new conditions is still one step.

You can undo and redo changes to:

* **Concepts**: add, update, or delete
* **Concept instances**: add, update, reorder, or delete
* **Relationships**: add, update, or delete
* **Rules**: add, update, reorder, or delete
* **Facts**: add, update, or delete
* **Datasources**: add, update, or delete
* **RBLang**: manual edits
* **Co-author changes**: updates made by Co-author

## What undo and redo does not cover

Some actions sit outside the core map logic.

You cannot undo or redo:

* **Graph layout changes**
* **README updates**
* **Importing a map**
* **Restoring a version**
* **Map-level settings**: such as map name and data retention
* **Anything outside the editor**: queries, automated tests, agents, and publishing

{% hint style="info" %}
Undo and redo is useful for quick recovery. [Versioning](/rainbird/knowledge-modelling/versioning.md) is still the safer fallback before large structural changes, imports, or restores.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.rainbird.ai/rainbird/knowledge-modelling/modelling-features/other-features/undo-and-redo.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
