nsc volume release
Releases all volumes for a provided tag.
volume release
destroys all volumes backing the provided volume tag.
Usage
nsc volume release <volume-tag>
Example
First, let's check which tags are in use.
% nsc volume list
┌──────────────────────────────────────────────────────────────────┐
│ Tag Size Attached To Last Used │
│──────────────────────────────────────────────────────────────────│
│ build-cluster-arm64 64 GB not attached 22 hours ago │
│ build-cluster-amd64 64 GB not attached 22 hours ago │
│ my-private-docker-image-cache 20 GB not attached 1 month ago │
│ my-private-preview-cache 20 GB not attached 1 month ago │
└──────────────────────────────────────────────────────────────────┘
We decide that we want to drop my-private-preview-cache
.
% nsc volume release my-private-preview-cache
Released volumes with tag my-private-preview-cache.
Finally, we can see the updated list of volumes.
% nsc volume list
┌──────────────────────────────────────────────────────────────────┐
│ Tag Size Attached To Last Used │
│──────────────────────────────────────────────────────────────────│
│ build-cluster-arm64 64 GB not attached 22 hours ago │
│ build-cluster-amd64 64 GB not attached 22 hours ago │
│ my-private-docker-image-cache 20 GB not attached 1 month ago │
└──────────────────────────────────────────────────────────────────┘