https://rancher.com/ logo
Title
m

many-rocket-71417

08/05/2022, 7:41 PM
Anybody have a way to delete many snapshots at once? I have a bunch leftover from schedules that no longer exist and i don't want to go by hand through 1000+ snapshots.
1
b

billowy-painting-56466

08/08/2022, 12:56 AM
Have you tried the
retain
field for the snapshot?
f

famous-shampoo-18483

08/08/2022, 4:20 AM
In v1.3.0, you can try to directly delete snapshot CRs for one volume. And the snapshots of one volume can be filtered by the label
longhornvolume: <volume name>
.
m

many-rocket-71417

08/08/2022, 4:48 AM
@billowy-painting-56466 yes that field is always set but sometimes they don't get cleaned up and in my case some snapshots exist from other jobs that have since been deleted so retain doesn't seem to affect those. Which makes sense. @famous-shampoo-18483 this seems to be the way, might make a quick script to filter by this label and remove them. Thank you
👍 2