$ rm -r $HOME/.docker/desktop
$ sudo rm /usr/local/bin/com.docker.cli
$ sudo apt purge docker-desktop
```
This removes configuration and data files at `$HOME/.docker/desktop`, the symlink at `/usr/local/bin/com.docker.cli`, and purges the remaining systemd service files.
3. Clean up Docker config settings. In `$HOME/.docker/config.json`, remove the `credsStore` and `currentContext` properties.
These entries tell Docker where to store credentials and which context is active. If they remain after uninstalling Docker Desktop, they may conflict with a future Docker setup.
{{< /tab >}}
{{< tab name="Debian" >}}
To uninstall Docker Desktop for Debian, run:
1. Remove the Docker Desktop application:
```console
$ sudo apt remove docker-desktop
```
This removes the Docker Desktop package itself but doesn’t delete all of its files or settings.
2. Manually remove leftover file.
```console
$ rm -r $HOME/.docker/desktop
$ sudo rm /usr/local/bin/com.docker.cli
$ sudo apt purge docker-desktop
```
This removes configuration and data files at `$HOME/.docker/desktop`, the symlink at `/usr/local/bin/com.docker.cli`, and purges the remaining systemd service files.
3. Clean up Docker config settings. In `$HOME/.docker/config.json`, remove the `credsStore` and `currentContext` properties.
These entries tell Docker where to store credentials and which context is active. If they remain after uninstalling Docker Desktop, they may conflict with a future Docker setup.
{{< /tab >}}
{{< tab name="Fedora" >}}
To uninstall Docker Desktop for Fedora:
1. Remove the Docker Desktop application. Run:
```console
$ sudo dnf remove docker-desktop
```
This removes the Docker Desktop package itself but doesn’t delete all of its files or settings.
2. Manually remove leftover file.
```console
$ rm -r $HOME/.docker/desktop
$ sudo rm /usr/local/bin/com.docker.cli
$ sudo apt purge docker-desktop
```
This removes configuration and data files at `$HOME/.docker/desktop`, the symlink at `/usr/local/bin/com.docker.cli`, and purges the remaining systemd service files.
3. Clean up Docker config settings. In `$HOME/.docker/config.json`, remove the `credsStore` and `currentContext` properties.
These entries tell Docker where to store credentials and which context is active. If they remain after uninstalling Docker Desktop, they may conflict with a future Docker setup.
{{< /tab >}}
{{< tab name="Arch" >}}
To uninstall Docker Desktop for Arch:
1. Remove the Docker Desktop application. Run:
```console
$ sudo pacman -Rns docker-desktop
```
This removes the Docker Desktop package along with its configuration files and dependencies not required by other packages.
2. Manually remove leftover files.
```console
$ rm -r $HOME/.docker/desktop
```
This removes configuration and data files at `$HOME/.docker/desktop`.
3. Clean up Docker config settings. In `$HOME/.docker/config.json`, remove the `credsStore` and `currentContext` properties.
These entries tell Docker where to store credentials and which context is active. If they remain after uninstalling Docker Desktop, they may conflict with a future Docker setup.
{{< /tab >}}
{{< /tabs >}}