All of this is possible. About uninstallation support…
This is easy for KVM and VirtualBox
Isn’t it better to simply recommend manual steps for this case?
It is possible to be done on the script, we already remove VMs when reimporting them, but uninstallation is not something I see much around this forum. It will add some number of lines but I feel it won’t be used at all, as it is far easier for the user to open virtualbox, right click, remove, confirm than reading the help message or man page and having to run this:
dist-installer-cli --uninstall-vm --guest --interface cli \
--delete-only gateway
While if I allow this kind of option:
dist-installer-cli --uninstall-vm whonix-gateway-xfce
Then it would need to be repeated:
dist-installer-cli --uninstall-vm whonix-gateway-xfce
dist-installer-cli --uninstall-vm whonix-workstation-xfce
dist-installer-cli --uninstall-vm whonix-gateway-cli
dist-installer-cli --uninstall-vm whonix-workstation-cli
dist-installer-cli --uninstall-vm kicksecure-xfce
dist-installer-cli --uninstall-vm kicksecure-cli
And this would break the logic of using
--interface cli|xfce
--guest whonix|kicksecure
--(delete|import)-only gateway|workstation