Skip to content

docs(tutorials): add complete uninstall and cleanup guide - #29554

Open
Prathamesh09-coder wants to merge 1 commit into
podman-container-tools:mainfrom
Prathamesh09-coder:fix/uninstall-tutorial-18034
Open

Prathamesh09-coder wants to merge 1 commit into
podman-container-tools:mainfrom
Prathamesh09-coder:fix/uninstall-tutorial-18034

Conversation

@Prathamesh09-coder

Copy link
Copy Markdown

What does this PR do?

Adds a comprehensive tutorial guide (docs/tutorials/uninstall.md) explaining how to completely reset, purge, and uninstall Podman, its virtual machines, container storage, networks, and configuration files across Linux, macOS, and Windows. Also updates docs/tutorials/README.md to link the new guide.

Why?

Users seeking a clean re-installation, version downgrade/upgrade, or complete software removal previously lacked documented commands and paths for residual files and directories.

Fixes #18034

Testing

Verified rendered markdown formatting, code block syntax, and internal documentation links.

Copilot AI lite review requested due to automatic review settings August 17, 2026 10:31

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@Honny1 Honny1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Intent feels good, but there are several problems. Removing manualy bineries feel odd. Also, please check https://podman-desktop.io/docs/uninstall (maybe these are also incorrect)

Comment thread docs/tutorials/uninstall.md Outdated

### macOS

#### Homebrew

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are not supporting Homebrew.

Comment thread docs/tutorials/uninstall.md Outdated
Comment on lines +46 to +66
#### Fedora / RHEL / CentOS / Rocky / AlmaLinux
```bash
sudo dnf remove -y podman podman-docker podman-remote podman-plugins
```

#### Debian / Ubuntu
```bash
sudo apt-get purge -y podman podman-docker
sudo apt-get autoremove -y
```

#### Arch Linux
```bash
sudo pacman -Rns podman podman-docker
```

#### openSUSE
```bash
sudo zypper remove podman podman-docker
```

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would mention only supported distributions.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Honny1 do we have a list of supported distributions?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, wondering if it'll be a good idea add SUSE* there as well considering we do have nightly podman tests running on it and I officially maintain the downstream package there.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to add here we are (supposedly) a vendor neutral upstream. I don't think saying we only support fedora/debian makes sense in that sense. We only test with them sure, but it is not like I will close a bug because the user is on arch or openSUSE unless that is a packaging issue.

So if someone likes to add a few more install/uninstall commands for several distros then I have nothing against that in principle. That said I am not sure if we as upstream have to documented how to install/uninstall packages for each distro. Distros users should be already aware on how to do it.
We just need to document the commands, like system reset, and other data storage locations that need to be removed manually.

Comment thread docs/tutorials/uninstall.md Outdated

### Windows

#### Windows Package Manager (winget)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not aware if we support winget.

Comment thread docs/tutorials/uninstall.md Outdated
```

#### PKG Installer
If you installed Podman via the `.pkg` installer from the official release page:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should the installer be capable of uninstalling? Removing files feels odd.

@Prathamesh09-coder

Copy link
Copy Markdown
Author

Thanks @Honny1 for the detailed review. I agree that manually removing installed binaries is not the right approach. I'll revise the guide to document only supported installation methods, remove the manual binary deletion steps, and align the platform-specific uninstall instructions with the existing Podman/Podman Desktop documentation.

@Prathamesh09-coder

Copy link
Copy Markdown
Author

Thanks for the review. I've revised the tutorial to address the concerns:

Removed manual binary/file deletion instructions.
Removed Homebrew, unsupported package-manager, and winget instructions.
Limited package installation/uninstallation instructions to the supported methods.
Updated VM cleanup to use podman machine reset -f.
Kept the reset and optional leftover-data cleanup sections separate.
Updated the tutorials index to match the revised scope.

I also reviewed the remaining cleanup instructions to avoid undocumented manual system-file removal.

Add tutorial detailing full Podman reset, package uninstallation, and residual configuration/storage directory cleanup across Linux, macOS, and Windows.

Fixes podman-container-tools#18034

Signed-off-by: Prathamesh Nawale <prathameshnawale19@gmail.com>
@Prathamesh09-coder
Prathamesh09-coder force-pushed the fix/uninstall-tutorial-18034 branch from e94e8f9 to 77365be Compare August 17, 2026 13:59

@Honny1 Honny1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have some addditonal comments. Would you also bring the guide closer to the completeness that #18034 asks for?


---

## Resetting Podman State

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am also missing the removal of connections (podman system connection).


### macOS

If you installed Podman using the official `.pkg` installer or Podman Desktop, use the uninstaller provided by the application package or move the application to the Trash.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, this is not true. Maybe it would be worth updating the installer to ship the uninstaller also. (Not sure how complex this idea is.)


---

## Optional Cleanup

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Personally, I think this is wrong. These paths can be used with other tools, so you can easily break other container tools.

@Prathamesh09-coder

Copy link
Copy Markdown
Author

Thanks! I'll check SUPPORT.md and align the documented package-manager options with the distributions officially supported by Podman. I'll also make sure the uninstall commands match the supported installation methods.

@Prathamesh09-coder

Copy link
Copy Markdown
Author

Thanks for the clarification. I'll remove the distro-specific package-manager uninstall commands and keep the tutorial focused on Podman-specific state reset and the data/configuration locations that may need manual cleanup.

@Honny1

Honny1 commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

@Prathamesh09-coder Any updates on this?

@Prathamesh09-coder

Copy link
Copy Markdown
Author

Thanks for the follow-up. I’m working through the remaining review comments now. I’ll update the guide to cover Podman system connections, correct the macOS uninstall guidance, and revise the cleanup section to avoid removing shared container-tool data. I’ll push the updated changes once these are addressed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Docs] Full podman uninstall commands

5 participants