start_integrated_remove_all

Function start_integrated_remove_all 

Source
pub fn start_integrated_remove_all(
    app: &mut AppState,
    names: &[String],
    dry_run: bool,
    cascade_mode: CascadeMode,
)
Expand description

What: Start integrated remove process (bypassing preflight).

Inputs:

  • app: Mutable application state
  • names: Package names to remove
  • dry_run: Whether to run in dry-run mode
  • cascade_mode: Cascade removal mode

Output:

  • Transitions to PasswordPrompt (remove always needs sudo)

Details:

  • Remove operations always need sudo, so always show PasswordPrompt.
  • Remove is intentionally never passwordless (even when use_passwordless_sudo is true) for safety; only install/update can skip the password prompt.
  • Uses ExecutorRequest::Remove for execution.