LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

poetry-remove

Remove dependencies from a Poetry project

TLDR

Remove a dependency
$ poetry remove [package]
copy
Remove dev dependency
$ poetry remove --group dev [package]
copy
Remove multiple packages
$ poetry remove [package1] [package2]
copy
Dry run
$ poetry remove --dry-run [package]
copy

SYNOPSIS

poetry remove [options] packages

DESCRIPTION

poetry remove removes one or more dependencies from the project, updating both pyproject.toml and the lock file. It also uninstalls the packages and any orphaned transitive dependencies from the virtual environment.Use -G to remove from a specific dependency group (e.g., dev, test). The --dry-run flag shows what would be removed without making changes.

PARAMETERS

PACKAGES

Packages to remove.
-G, --group GROUP
Remove from specific group.
-D, --dev
Remove from dev dependencies (deprecated, use -G dev instead).
--dry-run
Simulate removal without making changes.
--lock
Only update the lock file, do not uninstall packages.

INSTALL

sudo dnf install poetry
copy
sudo apk add poetry
copy
brew install poetry
copy
nix profile install nixpkgs#poetry
copy

CAVEATS

Updates lock file. May remove dependent packages.

HISTORY

poetry remove provides dependency removal from Poetry projects.

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid