These are steps you can follow to remove podman on Windows (WSL2)
To backup the current podman machine to tarball
wsl --export podman-machine-default podman-machine-default.tarTo remove podman remove the wsl installation and rootfs
wsl --unregister podman-machine-defaultNote: If you have podman machine named different find your wsl distro first. use
wsl --listcommand to list all installed linux instances. usewsl --unregister [id]to remove it and its rootfs
Having followed the above steps you will have removed the podman wsl machine. Now you can remove the podman index files.
rm ${Env:USERPROFILE}\.config\containers\podman\machine\wsl\podman-machine-default.json
rm ${Env:USERPROFILE}\.config\containers\podman\machine\wsl\podman-machine-default.lock