> ## Documentation Index
> Fetch the complete documentation index at: https://starforge.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# sf clean

> Delete an experiment's checkpoints and logs

```bash theme={"theme":{"light":"github-light","dark":"github-dark-dimmed"}}
sf clean my-grpo
```

删除某个实验的各次 run 产出的 checkpoint 和日志，释放计入你配额的存储。会先要求确认，`-y` 跳过。

<Warning>
  它删的是产物，不是实验。`config.yaml` 和 `recipe.lock.json` 会留下，实验还能重新提交——
  但没导出过的 checkpoint 就没了，用 `--init-from` 指向它开新 run 的能力也一并没了。
</Warning>

清理前先用 [`sf job status`](/zh-Hans/cli/job) 看看这次 run 还留着什么，
值得留的先 [export](/zh-Hans/cli/export) 出来。

## `sf clean`

Delete an experiment's checkpoints and logs

```bash theme={"theme":{"light":"github-light","dark":"github-dark-dimmed"}}
sf clean <EXP> [options]
```

| 参数    | 说明                               |
| ----- | -------------------------------- |
| `EXP` | Experiment name or path (**必填**) |

| 选项            | 说明                    |
| ------------- | --------------------- |
| `--yes`, `-y` | Skip the confirmation |
