Safe to delete old "Platform" flatpaks from Silverblue?

I’ve been running Silverblue since Fedora 33 or 34 and have an accumulation of Fedora, GNOME, and other “platform” flatpaks on my system that are now taking up quite a few gigs of disk space. Some are marked as “stopped receiving updates” and others seem to be older versions that are apparently still active in some way.

My question is, is it safe to delete the older versions? Can I leave just one of each, or at least get rid of the apparently unsupported versions without screwing something up?

Screenshot of what I’m talking about:

Added flatpak and removed f33

flatpak uninstall --unused

Thanks for the suggestion.

When I run that command, I get the following response:

Does this mean it’s safe to unpin those files and remove them?

Also, the list shown obviously doesn’t cover all the files that show up in GNOME software saying that they no longer get updates. How can I tell for sure if one of these other files really is or isn’t in use by the system?

I tend to think that F40 isn’t using stuff left over from 34, 35, or 36, but they don’t show up as unused by the flatpak command. I don’t know if these are packages still needed by the system for some reason or just junk that wasn’t properly removed during version updates.

Just because a flatpak platform isn’t receiving updates anymore doesn’t mean some random flatpak app you installed isn’t depending on an outdated platform flatpak.

As for the pinned flatpaks, no idea how to tell who and why they were pinned.

Sounds like you’d be better off with a regular Workstation install, where you almost never carry around unsupported, outdated stuff from six releases ago.

You can safely unpin and remove previous platforms. If an application depends on it, Flatpak should refuse to remove it.

If you use the flatpak uninstall command, it should tell you which application is depending on the “to-be-uninstalled” runtime if any.

That makes sense. Thanks. I’ll unpin the ones mentioned above and check the rest by running the uninstall from the command line. Thanks for the suggestion.