Crypto-shred an encrypted volume
POST/volumes/{name}/shred
Destroys the volume's keyslots and deletes its wrapped key, making the data permanently unrecoverable. 400 for a plaintext volume; 409 when attached to a live sandbox.
path parameters
object
namestringrequiredVolume name ([a-z0-9][a-z0-9-]*).
Responses
204 No contentNo Content
400 Bad requestBad Request
ErrorResponse
codestringerrorstring404 Not foundNot Found
ErrorResponse
codestringerrorstring409 ConflictConflict
ErrorResponse
codestringerrorstring501 Not Implemented
ErrorResponse
codestringerrorstringAuthentication
bearerAuthHTTP bearer. Daemon API key. Omit on a keyless loopback daemon.Request
▍POST/volumes/{name}/shred
curl '/volumes/{name}/shred' \
-X POSTconst response = await fetch("/volumes/{name}/shred", {
method: "POST",
});
const data = await response.json();import requests
response = requests.post(
"/volumes/{name}/shred",
)
data = response.json()Response
204 No content
No response body.