Delete a sandbox volume
Permanently deletes an unattached volume and its files.
Authorizations
Send Authorization: Bearer <api_key>. The legacy Authorization: Api-Key <api_key> scheme is also accepted.
Headers
Optional team ID. Must match the team_id query parameter when both are supplied. If neither selector is supplied, defaults to the caller's only accessible team. Callers with multiple accessible teams must select a team. Requests without access to any team are forbidden.
1Path Parameters
Volume name returned by creation.
1"datasets"
Query Parameters
Optional team ID. Must match X-Team-Id when both are supplied. If neither selector is supplied, defaults to the caller's only accessible team. Callers with multiple accessible teams must select a team. Requests without access to any team are forbidden.
1Response
Request accepted.
Persistent volume.
Volume name, used in volume_name path parameters and sandbox volumes.
"datasets"
Capacity, as a size (e.g. "10Gi", "512Mi") or a number of Mi (e.g. 1024).
"10Gi"
Region of the volume.
"us-pdx-1"
Volume status, always uppercase.
DEPLOYING, DEPLOYED, FAILED, DELETING "DEPLOYED"
Name of the sandbox the volume is mounted in. Absent when not mounted.
"baseten-api-review-0916"
Labels. Omitted from list responses.
"2026-10-12T12:00:00Z"
"2026-10-12T12:00:00Z"
User or service account that created the volume.
"sandbox-automation"
User or service account that last updated the volume.
"sandbox-automation"