mono.state is done or aborted. The person is an admin, or the experimenter who composed the study (experiment.created_by) or launched the run (launched_by).xlsx, csv, or json before anything is deleted. They may untick it to clear a botched run without an archive; that is a warned choice, and the acknowledgment changes to say the data cannot be recovered. Then they confirm the mode: Cleanup (reclaim the bulk, keep the record) or Purge (remove the run entirely, which only an admin can do).experiment_run row and its run_result scorecard, so the analytics still work. Purge additionally removes the run itself, which cascades the scorecard away too. Neither touches the reusable definitions (the study, the model set-up, the group, the documents). One audit_log row records the mode, whether an archive was taken or declined, and the archive's object key.experiment_run and run_result writes the archive, audit_log| If… | Then… |
|---|---|
The run is running or paused | Both actions are disabled on the row and refused by the server; finish or abort it first. |
| The archive write fails | Nothing is deleted. The dialog says why and offers Retry; the operator may instead untick Archive first and clear without one. An archive that was asked for and failed is never treated as consent to delete. |
| They untick Archive first | Allowed, so a botched run does not force an archive nobody wants. The acknowledgment changes to say the data cannot be recovered in any form, and the audit_log row records that no archive was taken. |
| An experimenter, not an admin, reaches for Purge | It is disabled for them; an owning experimenter may Clean up but cannot remove the run and its scorecard. |
| The run was cleaned up already | Clean up is disabled with a “cleaned up · scorecard kept” note — there is nothing left to reclaim; Purge stays available. |
done run, When an owning experimenter clicks Clean up on its row in the Experiments Screen's runs pane and confirms with Archive first ticked, Then the archive exists in storage and its key is in the audit_log row, the exchanges, candidates, messages, and enrollments are gone, and experiment_run and run_result still exist so the comparison still renders; and When the archive write fails, Then no row was deleted and the dialog offers Retry; and When they untick Archive first and confirm the recovery warning, Then the delete proceeds and the audit_log row says no archive was taken; and attempting any of this on a running run is refused.experiment_run removal that cascades the scorecard.Studies generate a lot of data: every exchange, every candidate answer from every model on every pass. Eventually you want that space back without losing what you learned.
You do not have to open a run to clear it. Pick the study on the Experiments screen, and its runs appear below with the clearing actions on each finished row; the run's own detail page has the same buttons for when you are already there.
Clearing a run comes in two strengths. Cleanup throws away the bulky raw material but keeps the run and its scorecard, which means your charts and comparisons keep working. That is the one most people want. Purge removes the run altogether, and only an admin can do it.
There are two safety rails. You cannot clear something that is still live. And by default ChatMaestro writes an archive first; if that write fails, nothing is deleted, and you are told and can try again. The archive is a default rather than a wall: a run that went wrong and holds nothing worth keeping can be cleared without one, after a plain warning that it will not be recoverable, and the record shows that you chose that.
Clearing a run only ever removes output. The study, the model set-up, the group, and your documents are reusable designs, and they survive untouched.
experiment_run.state; the two modes differ only in whether experiment_run itself is deleted (which cascades run_result); the archive choice and the object key live in the audit_log row rather than in a column of their own. Clearing never touches a definition — the study, the model set-up, the cohort, the documents — and purging the last run that references one is what unlocks it for editing or deletion.