Good day,
tldr: Basically I am asking for same functionality already provided in web interface:
Datasets -> Manage Snapshots -> mysnapshot -> Retention
This shows, if a snaphot is auto-deleted (or not) by its periodic task retention policy. Now I’d like to query for all un-managed snapshots (not just one). Afterwards, these might be optionally destroyed. Is this possible in UI?
If not: does TrueNAS provide a command-line tool/API to query unmanaged snapshots, so I can manually get this list and use zfs destroy
on it?
A bit more details: I have played around with periodic snapshot task naming schemas. Now I need to find out, if this lead to any snapshots not being auto-destroyed with regards to their retention policy. Overall goal is to optimize disk space and get rid of any “zombie” or un-managed snapshots.
Snapshots explicitly set to “Hold” should optimally be filtered out from this list, so they aren’t deleted.