# ⚠️ Uninstall a project

{% hint style="warning" %}

### Heads up!

This command is not shipped in Create Magento App template by default. To enable it add following line to your projects `package.json` field `scripts` :

```
"cleanup": "magento-scripts cleanup"
```

{% endhint %}

## `yarn cleanup` or `npm run cleanup`

This command allows you to gracefully uninstall Create Magento App project.

{% hint style="danger" %}

### Watch out!

You should not use this command! This is command description with how to use but we **strongly** recommend avoid using it.

It will remove Docker volumes (**you will lose all data inside Redis, MySQL and ElasticSearch**), run `magento setup:uninstall` command and remove config files from the cache folder.
{% endhint %}

### Command options

#### **`-f, --force`**

Cleanup will remove Magento files and CMA cache.\
The folder will remove to initial [structure](/getting-started/folder-structure.md).

{% hint style="info" %}

### Heads up!

PHP will not be removed by running this command. To remove it you should delete the folder `~/.phpbrew/php/php-7.3.11/`.
{% endhint %}

## Usage example

Add new line to `package.json`:

{% code title="package.json" %}

```bash
{
    "scripts": {
        "cleanup": "magento-scripts cleanup"
    }
}
```

{% endcode %}

Now use it as normal:

```bash
npm run cleanup # for NPM
yarn cleanup # for Yarn
```


---

# 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/getting-started/available-commands/cleanup.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.
