Remove unused runtimes

I am a user. After flatpak update I get many:

Info: runtime org.freedesktop.Sdk branch 23.08 is end-of-life, with reason:
   org.freedesktop.Platform 23.08 is no longer receiving fixes and security updates. Please update to a supported runtime version.

This made me to dig in, and i found that I may have installed much more many unused things. But the uninstall and remove –unused doesn’t work. Is there any command that really removes those unused?

thomas@thomas-e14:~$ flatpak list --app --columns=application,runtime
Application ID                              Runtime
com.anydesk.Anydesk                         org.freedesktop.Platform/x86_64/25.08
com.spotify.Client                          org.freedesktop.Platform/x86_64/25.08
com.sweethome3d.Sweethome3d                 org.freedesktop.Platform/x86_64/24.08
com.valvesoftware.Steam                     org.freedesktop.Platform/x86_64/25.08
io.dbeaver.DBeaverCommunity                 org.gnome.Platform/x86_64/49
org.cznic.Datovka                           org.kde.Platform/x86_64/6.9
org.signal.Signal                           org.freedesktop.Platform/x86_64/25.08
org.tigervnc.vncviewer                      org.fedoraproject.Platform/x86_64/f42
org.videolan.VLC                            org.kde.Platform/x86_64/5.15-24.08
thomas@thomas-e14:~$ flatpak list --columns=application,runtime
Application ID                                                     Runtime
com.anydesk.Anydesk                                                org.freedesktop.Platform/x86_64/25.08
com.spotify.Client                                                 org.freedesktop.Platform/x86_64/25.08
com.sweethome3d.Sweethome3d                                        org.freedesktop.Platform/x86_64/24.08
com.valvesoftware.Steam                                            org.freedesktop.Platform/x86_64/25.08
io.dbeaver.DBeaverCommunity                                        org.gnome.Platform/x86_64/49
org.cznic.Datovka                                                  org.kde.Platform/x86_64/6.9
org.fedoraproject.Platform
org.fedoraproject.Platform.GL.default
org.fedoraproject.Platform.Locale
org.fedoraproject.Platform.VAAPI.Intel
org.freedesktop.Platform
org.freedesktop.Platform
org.freedesktop.Platform.Compat.i386
org.freedesktop.Platform.GL.default
org.freedesktop.Platform.GL.default
org.freedesktop.Platform.GL.default
org.freedesktop.Platform.GL.default
org.freedesktop.Platform.GL.default
org.freedesktop.Platform.GL.default
org.freedesktop.Platform.GL32.default
org.freedesktop.Platform.GL32.default
org.freedesktop.Platform.VAAPI.Intel
org.freedesktop.Platform.VAAPI.Intel
org.freedesktop.Platform.VAAPI.Intel
org.freedesktop.Platform.VAAPI.Intel.i386
org.freedesktop.Platform.codecs-extra
org.freedesktop.Platform.codecs_extra.i386
org.freedesktop.Platform.openh264
org.freedesktop.Sdk
org.freedesktop.Sdk
org.gnome.Platform
org.gtk.Gtk3theme.Adwaita-dark
org.kde.Platform
org.kde.Platform
org.kde.PlatformTheme.QGnomePlatform
org.kde.WaylandDecoration.QAdwaitaDecorations
org.signal.Signal                                                  org.freedesktop.Platform/x86_64/25.08
org.tigervnc.vncviewer                                             org.fedoraproject.Platform/x86_64/f42
org.videolan.VLC                                                   org.kde.Platform/x86_64/5.15-24.08
thomas@thomas-e14:~$ flatpak uninstall --unused
Nothing unused to uninstall
thomas@thomas-e14:~$ flatpak remove --unused --delete-data
Nothing unused to uninstall

You can manually remove it flatpak remove org.freedesktop.{Platform,Sdk}//23.08 and so on

Thanks.

How do I know what is OK to remove? I would prefer something automatic, like the –unused.

Maybe remove everything except installed and then “flatpak repair”?

Some things are even repeating like, some are really large, some doesn’t state its version:

flatpak list --columns=application,runtime,size,version


org.freedesktop.Platform.GL.default                                                                              435,6 MB       25.2.4
org.freedesktop.Platform.GL.default                                                                              435,6 MB       25.2.4
org.freedesktop.Platform.GL.default                                                                              428,3 MB       25.2.4
org.freedesktop.Platform.GL.default                                                                              428,3 MB       25.2.4
org.freedesktop.Platform.GL.default                                                                              539,2 MB       25.0.7
org.freedesktop.Platform.GL.default                                                                              539,2 MB       25.0.7

org.kde.Platform                                                                                                 996,0 MB
org.kde.Platform                                                                                                   1,0 GB


They are repeating, cause you omit the lines, that make them distinct, run the command without the –columns