BASETEN_API_KEY to a workspace API key.
Delete a run
Deleting an active run deactivates it first. Baseten keeps checkpoints that another resource still uses, such as a deployment, and lists them in the response. They stay usable until that use stops. To keep a copy of other checkpoints, download them withdownload_checkpoint() before you delete the run.
To delete a run and its checkpoints:
Replace <run_id> with the run ID from TrainingClient.run_id or list your runs, then send a request to Delete a run:
kept_checkpoints array. Check the array for any checkpoints Baseten kept because they’re still in use.
Delete a checkpoint
Delete a checkpoint when you no longer need to load, sample, or deploy it. You can’t delete a checkpoint that something still uses. The error names the use. Remove that use and retry:- A deployment: Delete the deployment.
- An unfinished LoRA merge: Wait for the merge to finish.
- A sampler: Deactivate the sampler.
- A run: Deactivate the run.
<checkpoint_id> with the name you saved the checkpoint under, then send a request to Delete a checkpoint:
id, run_id, checkpoint_id, and path. After deletion, the checkpoint disappears from listings and you can’t load, sample, or deploy it. Deleting an already-deleted checkpoint returns the same response.
Related
- Deactivate a run: End a run but keep its checkpoints.
- Deploy checkpoints: Deploy or download saved weights.
- Delete a run reference: Request and response fields.
- Delete a checkpoint reference: Request and response fields.