> 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

Reverse and reapply editor changes in your current session.

## 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
