Hanzo AI
OpenapiSpace

Delete drives

Removes an EMPTY drive and answers 204. A drive holding files is 409 rather than a cascade: deleting an org's files behind a single drive call is not a…

DELETE /v1/space/{space}/drives/{drive}

Addresshttps://api.hanzo.ai/v1/space/{space}/drives/{drive}
MethodDELETE
Operationdelete_space_by_space_drives_by_drive
AuthAuthorization: Bearer $HANZO_API_KEY

Removes an EMPTY drive and answers 204.

A drive holding files is 409 rather than a cascade: deleting an org's files behind a single drive call is not a thing this surface will do silently. A drive or space the caller's org does not own is the same 404 an unknown name gives.

Billed per call: the balance is checked BEFORE anything is touched, so an unfunded org is refused with nothing deleted, and the debit lands only once the drive is gone.

Request

2 fields.

FieldInTypeRequiredDescription
spacepathstringyesSpace is the space's name, from the path.
drivepathstringyesDrive is the drive's name, from the path.

Response

StatusBodyMeaning
204no content
defaultproblem-detailsrefused

Failure carries the platform error shape — see Errors.

Examples

hanzo space drives rm <space> <drive>

Space API · All Hanzo APIs · Interactive reference

How is this guide?

On this page