Delete a volume

`conflict` while it is attached to a sandbox: detach it first.

DELETE/v1/volumes/{volume_id}

Not available yet Volumes are not served by the API yet. Their calls answer from a stand-in.

conflict while it is attached to a sandbox: detach it first. Its generations stay readable to copies made from them. Pod removes its data once nothing names it. A repeat on a deleted volume answers 204.

A key with the sandboxes:write scope.

Request

curl -X DELETE "https://api.pod.mapier.ai/v1/volumes/vol_3ahrz6dmv29gqy5ckt18fpx4b" \
  -H "Authorization: Bearer $POD_API_KEY"

Parameters

NameInTypeRequiredWhat it is
volume_idpathstringYesA block volume.
Idempotency-KeyheaderstringNoMakes a repeat of this call safe for 24 hours.

Answer

204. Deleted.

Errors

The refusals this call is known for: conflict, not_found. Any call can also answer unauthorized, rate_limited, unavailable or internal; the error list says what each means and when to send the call again.

In the SDKs

ClientCall
TypeScriptpod.volumes.delete(id)
Pythonpod.volumes.delete(id)