GoRunner docs
Search or askSearch⌘K

Delete a run

DELETE/api/runs/{id}

Deletes a finished run, with its steps and their data. There is no undo.

Needs an API token with the Cancel and delete permission for runs (run:manage).

Parameters

Path

idRequired · UUID

The run’s ID.

Request

GORUNNER="https://api.gorunner.io"
GORUNNER_TOKEN="grt_…"  # needs Cancel and delete for runs
RUN_ID="your-run-id"

curl -X DELETE "$GORUNNER/api/runs/$RUN_ID" \
  -H "Authorization: Bearer $GORUNNER_TOKEN"

Response · 200 OK

json
{
  "data": {
    "id": "8f0c41d2-6b7e-4c1a-9d3f-2a5b7c9e1f04",
    "deleted": true
  }
}

Responses

  • 200OK

    Deleted.

  • id isn’t a UUID.

  • The token lacks the Cancel and delete permission for runs.

  • No run with this ID in the token’s workspace.

  • The run hasn’t finished: it is queued, running or held. Cancel it first.

  • Nothing was deleted. Try again.

Any call can also answer: 401 UNAUTHORIZED · 401 TOKEN_ENDED · 403 TOKEN_SURFACE_OFF · 403 FEATURE_OFF · 403 EMBED_NOT_ALLOWED · 403 EMBED_NOT_AVAILABLE · 403 ACCOUNT_SUSPENDED · 429 RATE_LIMITED · 503 BUSY · 503 PAUSED · 503 SERVICE_UNAVAILABLE. See Errors.

Response · 409 Conflict

json
{
  "error": {
    "code": "CONFLICT",
    "message": "Cancel the run before deleting it."
  }
}
Every field

It takes no body.

Response · 200 OK

dataobject
idUUID

The run that was deleted.

deletedboolean

Always true on a 200.