Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recycle - Force option shouldn't delete permanently #18

Open
akaleeroy opened this issue Sep 12, 2022 · 1 comment
Open

Recycle - Force option shouldn't delete permanently #18

akaleeroy opened this issue Sep 12, 2022 · 1 comment

Comments

@akaleeroy
Copy link

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?

@bdukes
Copy link
Owner

bdukes commented Sep 16, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants