To also remove any installed Flatpaks you need to remove the directories containing them. These are /var/lib/flatpak and ~/.local/share/flatpak. For example, you could use the command
Cookies help us deliver our services. By using our services, you agree to our use of cookies.