> For the complete documentation index, see [llms.txt](https://docs.stackai.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stackai.com/technical-reference/releases-and-environments/rollback-and-deployment-history.md).

# Rollback and Deployment History

Rollback restores a previous release selection when the current change causes a problem. Review the previous version’s configuration before restoring it.

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSQ1Sgy933krTyK0S4JpP%2Fuploads%2FQYX27tptnpVHb6tQ2pBw%2FG070.mp4?alt=media&token=8764ba52-149a-4229-970c-4e9283088141>" %}

## Before you begin

Permission to manage releases and an available historical version.

## Key concepts

| Term             | Definition                                                                                                                                                  |
| ---------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Release rollback | Restoring a previous release selection. It changes future execution selection; it does not undo external business transactions.                             |
| Project version  | A specific saved configuration of a project. Select it explicitly when a result must be reproducible.                                                       |
| Environment      | A named configuration context for variables, secrets, and deployment use. Different environments can reach different services or use different credentials. |
| Side effect      | A change outside the returned answer, such as creating a record or sending email. Cancellation or release rollback does not undo a completed side effect.   |

## Restore a previous release

1. Find the last suitable version in deployment history.

![Select a saved version from history before comparing or restoring it.](https://content.gitbook.com/content/SQ1Sgy933krTyK0S4JpP/blobs/eu1vrBNDjnIbh475zxq3/assets/g070-g070-01-history.png)

Select a saved version from history before comparing or restoring it.

2. Check that its connections and environment configuration remain valid.
3. Restore it through the supported release process and confirm the active version.

New executions use the restored release selection.

## Behavior and limitations

Rollback does not undo records created or messages sent by completed runs. It does not guarantee that an older credential or provider endpoint remains valid. Handle any required data correction separately. Retain the failed run IDs and release details for diagnosis.

## Related resources

[Project version history and diffs](https://docs.stackai.com/guides-and-quickstarts/releases-and-environments/project-version-history-and-diffs.md)

[Saved Changes, Versions, and Published Releases](https://docs.stackai.com/technical-reference/releases-and-environments/saved-changes-versions-and-published-releases.md)


---

# 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.stackai.com/technical-reference/releases-and-environments/rollback-and-deployment-history.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.
