# `mix deps.unlock`
[🔗](https://github.com/elixir-lang/elixir/blob/v1.20.3/lib/mix/lib/mix/tasks/deps.unlock.ex#L5)

Unlocks the given dependencies.

Since this is a destructive action, unlocking dependencies
only occurs when passing arguments/options:

  * `dep1 dep2` - the name of dependencies to be unlocked
  * `--all` - unlocks all dependencies
  * `--filter` - unlocks only deps matching the given name
  * `--unused` - unlocks only unused dependencies (no longer mentioned
    in the `mix.exs` file)
  * `--check-unused` - checks that the `mix.lock` file has no unused
    dependencies. This is useful in pre-commit hooks and CI scripts
    if you want to reject contributions with extra dependencies

---

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