How to remove all layered packages


In the times of fedora 28 atomic workstation, I’ve added some layered packages.
I’ve upgraded to fedora 29
I want to remove this layer
I want to return to stock image

I’ve found “rpm-ostree uninstall …”
but this is not what I want. I want “factory reset


I found it, just rpm-ostree uninstall --all


You can also use rpm-ostree ex reset to remove all overlays, overrides and initramfs:

Available in rpm-ostree v2018.6 and beyond