Command line to delete un-shared datasets

linedpaper

Cadet
Joined
Jan 20, 2019
Messages
9
I've started using democratic-csi to create PVC's for my k8s cluster and had an issue recently where I had to restore my cluster from backup. After doing this I noticed that all old PVC's are still present. The PVC's are datasets in a sub-dataset of my pool. All of the used ones have an NFS share attached to them, the un-used ones do not. There are quite a few so manually removing in the GUI is quite cumbersome, is there an easy way to remove all datasets of this subfolder only that do not have a share associated with them?
 
Top