Skip to content

clean Command

The clean command is used to remove temporary artifacts related to Bruin.

It currently:

  • cleans the cached virtualenv directories inside ~/.bruin directory
  • removes the logs directory from the project root

Usage

bash
bruin clean [path-to-project-root]

path-to-project-root (optional): Specifies the path to the root of the project. If omitted, the current directory (.) is used as the default.

Example

Cleaning the current directory

bash
bruin clean

Output:

Bruin - clean

Flags

FlagTypeDefaultDescription
--uv-cachestr-clean uv caches

Adding the flag uv-cache will remove all cached uv packages and metadata that were stored during previous installs or dependency resolutions. You will be prompted to confirm whether you want to proceed:

bash
"Are you sure you want to clean uv cache? (y/N): "