commands.sh

poetry remove

all

Remove a package from the project dependencies.

More info →

Options (2)

-D, --devboolean

Remove a package from the development dependencies

Example: poetry remove {{package}} {{[-D|--dev]}}
-G, --groupboolean

Remove a package from a specific dependency group

Example: poetry remove {{package}} {{[-G|--group]}} {{group_name}}

Examples (5)

Remove one or more packages from the project's dependencies

poetry remove package1 package2 ...

Remove a package from the development dependencies

poetry remove package [-D|--dev]

Remove a package from a specific dependency group

poetry remove package [-G|--group] group_name

Remove a package without making any changes (dry-run)

poetry remove package --dry-run

Update the lock file only, without removing the package from the environment

poetry remove package --lock
made by @shridhargupta | data from tldr-pages