---
title: "Rollback to height"
method: POST
path: "/debug/rollback"
tags: ["debug"]
---

# Rollback to height

`POST /debug/rollback`

Removes all blocks after a given height. Max number of blocks back from the current height is set by `waves.db.max-rollback-depth`, 2000 by default

## Request body

- object
  - `rollbackTo` integer, required
  - `returnTransactionsToUtx` boolean, required

## Response `200`

successful operation

- object
  - `BlockId` string, required

## Other responses

- `403` — Provided API key is not correct

---

[API](https://skmtc.net/wavesplatform/apis/waves-full-node-chainid.md) · [All operations](https://skmtc.net/wavesplatform/apis/waves-full-node-chainid/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/wavesplatform/waves-full-node-chainid/versions/09465bcdf6ce/schema)
