> ## Documentation Index
> Fetch the complete documentation index at: https://docs.diversion.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# clean

> Remove ignored and untracked files from the workspace

The `clean` command removes ignored and untracked files from your workspace, similar to `git clean`.

```bash theme={null}
dv clean [-f]
```

The `-f` flag forces the removal of files without confirmation.

This command is useful for removing build artifacts, temporary files, and other untracked content that you don't want to keep.

<Warning>
  This command permanently deletes files. Make sure you don't have any important untracked files before running it.
</Warning>

An example of cleaning the workspace:

```bash theme={null}
dv clean -f
```

This will remove all ignored and untracked files without asking for confirmation.

<Note>
  Files listed in your `.dvignore` file are considered ignored files and will be removed by this command.
</Note>
