---
title: "Discard a task"
method: POST
path: "/runners/workspaces/{workspaceId}/tasks/{taskId}/discard"
tags: ["Runners Workspaces"]
---

# Discard a task

`POST /runners/workspaces/{workspaceId}/tasks/{taskId}/discard`

Discards the specified task within the workspace

## Path parameters

- `workspaceId` string, required
- `taskId` string, required

## Response `202`

Task discard operation has initiated successfully

## Other responses

- `400` — Bad Request Error
- `401` — Unauthorized Error
- `403` — Insufficient permissions
- `404` — Not Found Error
- `500` — Internal Server Error

---

[API](https://skmtc.net/firefly/apis/api-gateway.md) · [All operations](https://skmtc.net/firefly/apis/api-gateway/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/firefly/api-gateway/revisions/eea119b4113f/schema)
