Delete a snapshot

A repeat on a deleted snapshot is a no-op.

DELETE/v1/snapshots/{snapshot_id}

A repeat on a deleted snapshot is a no-op.

A key with the snapshots:write scope.

Request

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

Parameters

NameInTypeRequiredWhat it is
snapshot_idpathstringYes
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, in_other_cell. 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.snapshots.delete(id)
Pythonpod.snapshots.delete(id)
mpodmpod sandboxes snapshots delete <snapshot>