Skip to main content

run_delete

Function run_delete 

Source
pub async fn run_delete(
    __arg0: State<AppState>,
    __arg1: Path<String>,
) -> Result<StatusCode, ApiError>
Expand description

DELETE /v1/runs/:id — retention prune: deletes the Run row and its trace stream together (404 when the Run row is absent; the trace stream is pruned best-effort either way). Replay rows are untouched — ReplayStore has its own truncation semantics owned by the rerun-from path.

Trust tier: same auth-free open-router posture as every other route in this module (POST /v1/tasks included) — the server is a local-first, loopback-bound single-operator daemon. Flagged in holistic review as the surface’s first unauthenticated destructive verb; acceptable under the loopback bind, revisit if the bind ever goes non-local.