remove inactive snaps
snap list --all show a bunch of old disabled versions of things?
They're there to give you the option of rolling back a version, but maybe you want to remove them. Here's a script for that.
Tested in Ubuntu 19.10 (eoan).
This uses the JSON API, after noticing previous scripts were broken when the command-line output changed the columns between versions.