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
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
volume_id | path | string | Yes | A block volume. |
Idempotency-Key | header | string | No | Makes 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
| Client | Call |
|---|---|
| TypeScript | pod.volumes.delete(id) |
| Python | pod.volumes.delete(id) |