PowerShellModules icon indicating copy to clipboard operation
PowerShellModules copied to clipboard

Recycle - Force option shouldn't delete permanently

Open akaleeroy opened this issue 3 years ago • 1 comments

Remove-ItemSafely -Force becomes a misnomer if the -Force switch makes the command unsafe (delete permanently, without a confirmation prompt). For deleting permanently users ought to use Remove-Item.

Maybe a change of name of the cmdlet?

akaleeroy avatar Sep 12 '22 00:09 akaleeroy

Yes, the cmdlet is poorly designed, in that using Remove-Item parameters that aren't supported causes it to fall back to Remove-Item (and, therefore, silently before "unsafe"). Fixes are definitely welcome.

bdukes avatar Sep 16 '22 14:09 bdukes