Skip to main content

unlink_managed

Function unlink_managed 

Source
pub async fn unlink_managed(
    bin_dir: &Path,
    managed_root: &Path,
    dry_run: bool,
) -> Result<UnlinkReport>
Expand description

Remove symlinks in bin_dir whose link target starts with managed_root.

Non-symlinks and symlinks pointing outside managed_root are untouched. Missing bin_dir is treated as a no-op (returns empty report). When dry_run is true, nothing is removed.