I added a program using flathub to Cosmic Atomic. Now I don’t know how to delete it. How do I delete a flatpak from this DE?
sudo flatpak uninstall program so if you’ve installed say a weather app you would sudo flatpak uninstall weather-app. If the weather app pulled in a bunch of stuff during installation that isn’t needed by anything else you can also uninstall that stuff with sudo flatpak uninstall --unused. Sometimes you may have installed something that won’t be listed if you just try to uninstall program so you can use sudo flatpak list --all to see what flatpak software you have installed and it’ll list the name and application id for it. So if you’ve installed ffmpeg from flathub/flatpak it’ll list as org.freedesktop.Platform.ffmpeg-full, so you would sudo flatpak uninstall org.freedesktop.Platform.ffmpeg-full (But in this case, just using ffmpeg will work, this is just as an example).
Any flatpak files can be found in .var located in your home directory, so if you want to delete that stuff as well you can rm -rf .var/app/weather-app or by unhiding dotfiles and dot folders in your file manager and doing it graphically.
The screenshots below will give you a visual representation.
Command line options…
Location of application cache / config and data in graphical file browser…

