# Uninstall CMA

## 1. Uninstall Docker

On Mac, follow [these instructions](https://docs.docker.com/desktop/mac/install/#uninstall-docker-desktop) to remove Docker from your system.

On Windows, follow [these instructions](https://docs.docker.com/desktop/windows/install/#uninstall-docker-desktop) to remove Docker from your system.

On Linux, follow the following instructions for your distro:

{% tabs %}
{% tab title="Ubuntu" %}
1\. Uninstall the Docker Engine, CLI, and ContainerD packages:

```bash
sudo apt-get purge docker-ce docker-ce-cli containerd.io
```

2\. Images, containers, volumes, or customized configuration files on your host are not automatically removed. To delete all images, containers, and volumes:

```bash
sudo rm -rf /var/lib/docker
sudo rm -rf /var/lib/containerd
```

Documentation is available [here](https://docs.docker.com/engine/install/ubuntu/#uninstall-docker-engine).
{% endtab %}

{% tab title="Arch Linux" %}
To uninstall the Docker package:

```bash
sudo pacman -R docker
```

To uninstall the Docker package and dependencies that are no longer needed:

```bash
sudo pacman -Rns docker
```

The above commands will not remove images, containers, volumes, or user-created configuration files on your host. If you wish to delete all images, containers, and volumes run the following command:

```bash
rm -rf /var/lib/docker
```

Documentation is available [here](https://github.com/saturnism/docker/blob/master/docs/installation/archlinux.md#uninstallation).
{% endtab %}

{% tab title="CentOS" %}
1\. Uninstall the Docker Engine, CLI, and ContainerD packages:

```bash
sudo yum remove docker-ce docker-ce-cli containerd.io
```

2\. Images, containers, volumes, or customized configuration files on your host are not automatically removed. To delete all images, containers, and volumes:

```bash
sudo rm -rf /var/lib/docker
sudo rm -rf /var/lib/containerd
```

Documentation is available [here](https://docs.docker.com/engine/install/centos/#uninstall-docker-engine).
{% endtab %}

{% tab title="Fedora" %}
1\. Uninstall the Docker Engine, CLI, and ContainerD packages:

```bash
sudo dnf remove docker-ce docker-ce-cli containerd.io
```

2\. Images, containers, volumes, or customized configuration files on your host are not automatically removed. To delete all images, containers, and volumes:

```bash
sudo rm -rf /var/lib/docker
sudo rm -rf /var/lib/containerd
```

Documentation is available [here](https://docs.docker.com/engine/install/fedora/#uninstall-docker-engine).
{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.create-magento-app.com/troubleshooting/uninstall-cma.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
