hello-world with a drive mounted at
/mnt/notes, as in Mount a drive.
Drives are in pre-release in the Baseten CLI (
baseten drive and baseten sandbox drive) and in the Python, TypeScript, and Go SDKs (baseten, @basetenlabs/client, @basetenlabs/sandbox, and baseten-go). Commands, methods, and responses can change. The Management API drive operations are experimental.Unmount a drive
Identify the mount by its mount path. To find it, list the sandbox’s drive mounts. To unmount the drive at/mnt/notes:
- TypeScript
- Python
- Go
- API
- CLI
Run the following code:
Next steps
Delete a drive
Permanently remove a drive and its files.
Mount a drive
Mount the drive again in this sandbox or another one.