---
title: "Discard a Run"
method: POST
path: "/runs/{run}/actions/discard"
tags: ["runs"]
---

# Discard a Run

`POST /runs/{run}/actions/discard`

## Request

- Base URL: `https://example.scalr.io/api/iacp/v3`
- URL: `https://example.scalr.io/api/iacp/v3/runs/{run}/actions/discard`
- Auth: HTTP bearer

Skip any remaining work on runs that are paused waiting for confirmation or priority.

This includes runs in the `pending`, `planned`, `policy_checked` and `policy_override` states.

## Path parameters

- `run` string, required

## Request body

- Comment: An optional explanation for why run action was done.
  - `comment` string: The reason.

## Response `202`

Successfully queued a discard request.

## Other responses

- `404`: Run not found, or user unauthorized to perform action.
- `409`: Run was not paused for confirmation or priority. Discard not allowed.
- `4XX`: Client error.
- `5XX`: Server error.

---

[API](https://skmtc.dev/scalr/apis/scalr-iacp-api.md) - [All operations](https://skmtc.dev/scalr/apis/scalr-iacp-api/llms.txt) - [OpenAPI document](https://skmtc.dev/scalr/apis/scalr-iacp-api/revisions/d3e1dc85657a?raw)
