> For the complete documentation index, see [llms.txt](https://elixir.petrolidas.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://elixir.petrolidas.com/bits-and-pieces/clean-mix-dependencies.md).

# Clean mix dependencies

Every once in a while, or when you have removed a dependency from your project, or you have run `mix deps.update`, it is a good practice to clean unused dependencies.

This is more to free disk space.

Here's how to do it:

```shell
mix deps.clean --unlock --unused
```

{% hint style="info" %}
Do you have feedback or questions about this? [Email me](mailto:petros@hey.com).
{% endhint %}
