Skip to content

Conversation

girdharagrawalbro
Copy link

@girdharagrawalbro girdharagrawalbro commented Oct 16, 2025

Adds documentation for poetry remove command.

Examples included:

  • Remove a dependency
  • Remove multiple dependencies
  • Remove development dependency
  • Remove optional dependency
  • Remove with dry-run
  • Remove from specific group

#18042

@github-actions github-actions bot added new command Issues requesting creation of a new page or PRs adding a new page for a command. review needed Prioritized PRs marked for reviews from maintainers. labels Oct 16, 2025
@dmmqz dmmqz mentioned this pull request Oct 16, 2025
28 tasks

- Remove multiple packages:

`poetry remove {{package1}} {{package2}}`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
`poetry remove {{package1}} {{package2}}`
`poetry remove {{package1 package2 ...}}`

https://github.com/tldr-pages/tldr/blob/main/contributing-guides/style-guide.md#grouping-placeholders


- Remove a development dependency:

`poetry remove --group {{dev}} {{package_name}}`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
`poetry remove --group {{dev}} {{package_name}}`
`poetry remove {{[-D|--dev]}} {{package_name}}`

--dev (-D): Removes a package from the development dependencies. (shortcut for -G dev)

Could you add an example for any group? So something like:
poetry remove --group {{group_name}} {{package_name}}

@Managor Managor closed this Oct 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new command Issues requesting creation of a new page or PRs adding a new page for a command. review needed Prioritized PRs marked for reviews from maintainers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants