メインコンテンツまでスキップ

Delete one saved run

DELETE 

/api/sentinel/runs/:run_id

Permanently deletes one completed run from the board and returns the deleted run's id and name in deleted, with Sentinel's run list afterwards in sentinel. Sentinel's API has no delete, so Insight resolves the name or id against the daemon's run list first and then runs simaai-sentinel runs delete <id> on the board with the id the daemon reported; the path value itself is never passed to the board. A run Sentinel does not list returns 404 not_found without running anything. A run that is still recording returns 409 trace_conflict; stop the trace first. When generation is sent and the selected board has changed since, 409 stale_snapshot is returned and nothing is deleted. A CLI failure keeps its output in detail: tool_missing when simaai-sentinel is not on the board, sentinel_denied when the board user may not remove the file, and sentinel_failed otherwise, including when the run is still listed afterwards.

Request​

Responses​

The run was deleted. deleted names it; sentinel.runs is the run list after the delete.