I have had pinned image deployment, because of having issues. Now latest image is working fine for me and I have unpinned the image:
sudo ostree admin pin --unpin 2
Then I have checked current state with rpm-ostree status
and I get:
rpm-ostree status
State: idle
AutomaticUpdates: stage; rpm-ostreed-automatic.timer: no runs since boot
Deployments:
● ostree-image-signed:docker://ghcr.io/ublue-os/bluefin:stable
Digest: sha256:308f2addc0874bb901680a8bf8b8a817cf9e102ac3e6d40dac7a0955f42ad1df
Version: 41.20250209.1 (2025-02-09T06:02:01Z)
ostree-image-signed:docker://ghcr.io/ublue-os/bluefin:stable
Digest: sha256:12fefae335b0ba23ca0380a589cbf1de8ca1042e2fe7782829f1e84c892bbdd4
Version: 41.20250202.1 (2025-02-02T05:59:53Z)
ostree-image-signed:docker://ghcr.io/ublue-os/bluefin:stable
Digest: sha256:59119e20585df337400bf3621167a242007c48654bb5bc2070189f6952306381
Version: 41.20250119.1 (2025-01-19T06:00:40Z)
Now I would like to delete this image deployment. I tried with:
rpm-ostree cleanup -m 59119e20585df337400bf3621167a242007c48654bb5bc2070189f6952306381
then I have reboot Linux and rpm-ostree status
still shows all three image deployments.
How to delete last image deployment?