How do I safely uninstall snaps which are installed by transitional packages? For example I upgraded a system from 20.04 to 22.04 which had chromium-browser installed. As a result, chromium-browser was upgraded to:
rc chromium-browser 1:85.0.4183.83-0ubuntu0.20.04.2 amd64 Transitional package - chromium-browser -> chromium snap
Which resulted in /snap/chromium being populated
I now need to uninstall this. I apt-get remove'd the chromium and chromium-browser packages (then apt-get autoremove'd all orphaned dependencies), however /snap/chromium did not get smaller. dpkg -l | grep chromium still shows the chromium-browser line shown above.
what is the right way to remove this snap, without apt transitional packages getting out-of-sync?
I ask because I have a bunch of other /snap/* directories I want to clean up to recover disk space on this smaller aging system, however they must have been installed by apt and I do not want to remove the snap packages directly.