---
title: "pols rollback"
description: "Roll a sandbox's disk back to a checkpoint, discarding everything newer"
---

<!-- Generated by scripts/reference.mjs from the pols CLI's --help. Do not edit; run `npm run reference:sync`. -->

Discard every change to the sandbox's disk since the checkpoint, and the
checkpoints taken after it; the checkpoint itself is kept. The sandbox's users
become the ones it had then. A running sandbox is shut down, rolled back and
booted again, so the processes running in it stop; a stopped one is rolled back
and stays stopped. Refused while a fork or template made from the sandbox after
the checkpoint exists, or when the sandbox was resized since.

## Usage

```text
pols rollback SANDBOX CHECKPOINT [flags]
```

## Examples

```sh
pols rollback web before-migration
pols rollback sbx_3k9x2m1q8zt4 ckp_8f2k1m9q4z7x --no-wait
```

## Flags

```text
-h, --help                    help for rollback
    --no-wait                 return at once instead of waiting for the sandbox to get there
    --wait-timeout duration   how long to wait (default 5m0s)
```

The [global flags](/docs/reference/cli/#global-flags) work with this command too.
