---
title: "Clear staged revert"
method: DELETE
path: "/api/session/{sessionID}/revert"
tags: ["session"]
---

# Clear staged revert

`DELETE /api/session/{sessionID}/revert`

## Request

- Base URL: `https://opencode.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://opencode.ai/api/session/{sessionID}/revert`
- Auth: none required

## Path parameters

- `sessionID` string, required

## Response `204`

<No Content>

## Other responses

- `400`: InvalidRequestError
- `401`: UnauthorizedError
- `404`: SessionNotFoundError | LocationNotFoundError
- `409`: SessionBusyError
- `500`: UnknownError

---

[API](https://skmtc.dev/kaaass/apis/opencode.md) - [All operations](https://skmtc.dev/kaaass/apis/opencode/llms.txt) - [OpenAPI document](https://skmtc.dev/kaaass/apis/opencode/revisions/4e083d954707?raw)
