# `mix clean`
[🔗](https://github.com/elixir-lang/elixir/blob/7ff272706afc522e74121493b7166719985cb099/lib/mix/lib/mix/tasks/clean.ex#L5)

Deletes generated application files.

This command deletes all build artifacts for the current project.
Dependencies' sources and build files are cleaned only if the
`--deps` option is given.

By default this task works across all environments, unless `--only`
is given.

## Command line options

  * `--deps` - clean dependencies as well as the current project's files
  * `--only` - only clean the given environment

---

*Consult [api-reference.md](api-reference.md) for complete listing*
