---
title: pixi clean
---
<!--- This file is autogenerated. Do not edit manually! -->
# [pixi](../pixi.md) clean

Cleanup the environments

--8<-- "docs/reference/cli/pixi/clean_extender:description"

## Usage
```
pixi clean [OPTIONS] [COMMAND]
```

## Subcommands
| Command | Description |
|---------|-------------|
| [`cache`](clean/cache.md) | Clean the cache of your system which are touched by pixi |


## Options
- <a id="arg---environment" href="#arg---environment">`--environment (-e) <ENVIRONMENT>`</a>
:  The environment directory to remove
- <a id="arg---activation-cache" href="#arg---activation-cache">`--activation-cache`</a>
:  Only remove the activation cache
- <a id="arg---build" href="#arg---build">`--build`</a>
:  Only remove the pixi-build cache
- <a id="arg---workspaces-registry" href="#arg---workspaces-registry">`--workspaces-registry`</a>
:  Only remove disassociated workspace registries

## Global Options
- <a id="arg---manifest-path" href="#arg---manifest-path">`--manifest-path (-m) <MANIFEST_PATH>`</a>
:  The path to `pixi.toml`, `pyproject.toml`, or the workspace directory
- <a id="arg---workspace" href="#arg---workspace">`--workspace (-w) <WORKSPACE>`</a>
:  Name of the workspace

## Description
Cleanup the environments.

This command removes the information in the .pixi folder. You can specify the environment to remove with the `--environment` flag.

Use the `cache` subcommand to clean the cache.


--8<-- "docs/reference/cli/pixi/clean_extender:example"
