# 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 %}
