Skip to main content

Module package_remove

Module package_remove 

Source
Expand description

Package remove operations.

Provides domain-level package removal functionality aligned with rez’s package_remove.py.

§Lessons from Rez Issues (avoided pitfalls):

  • Wildcard version removal: Explicitly require version or full-family confirmation to prevent accidental mass deletion (Rez issue #1374: pre-install tests fail when package is filtered out — we ensure remove operates on explicit targets only).
  • Dry-run support: Always provide a way to preview what will be removed.

Structs§

PackageRemoveConfig
Configuration for package remove operations.
PackageRemoveResult
Result of a package remove operation.

Enums§

PackageRemoveError
Errors that can occur during package remove operations.

Functions§

preview_removal
Preview what would be removed (dry-run).
remove_package_family
Remove an entire package family (all versions).
remove_package_version
Remove a specific version of a package.