content/manuals/compose/install/uninstall.md
How you uninstall Docker Compose depends on how it was installed. This guide covers uninstallation instructions for:
If you want to uninstall Docker Compose and you have installed Docker Desktop, see Uninstall Docker Desktop.
[!WARNING]
Unless you have other Docker instances installed on that specific environment, uninstalling Docker Desktop removes all Docker components, including Docker Engine, Docker CLI, and Docker Compose.
If you installed Docker Compose via a package manager, run:
On Ubuntu or Debian:
$ sudo apt-get remove docker-compose-plugin
On RPM-based distributions:
$ sudo yum remove docker-compose-plugin
If you installed Docker Compose manually (using curl), remove it by deleting the binary:
$ rm $DOCKER_CONFIG/cli-plugins/docker-compose
If installed for all users, remove it from the system directory:
$ rm /usr/local/lib/docker/cli-plugins/docker-compose
[!NOTE]
If you get a Permission denied error using either of the previous methods, you do not have the permissions needed to remove Docker Compose. To force the removal, prepend
sudoto either of the previous instructions and run it again.
To check where Compose is installed, use:
$ docker info --format '{{range .ClientInfo.Plugins}}{{if eq .Name "compose"}}{{.Path}}{{end}}{{end}}'