- 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.
curl examples authenticate with BASETEN_API_KEY. Export your API key first:
- Python SDK
- REST API
To delete a checkpoint:Call The result reports the deleted checkpoint’s
delete_checkpoint_from_path() on a ServiceClient, replacing <checkpoint_path> with the checkpoint’s bt:// path, such as the path that save_state() or save_weights_for_sampler() returned:id and path. Listing the run’s checkpoints afterward no longer includes it.To delete the checkpoint by the name you saved it under, pass that name and the run’s ID to delete_checkpoint():Next steps
- Set a checkpoint expiry: Have Baseten delete checkpoints for you after a set time.
- Delete a run: Remove a run and the checkpoints that nothing else uses.