-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Add back Clear-RecycleBin for Windows
#10909
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
Conversation
src/Microsoft.PowerShell.Commands.Management/commands/management/ClearRecycleBinCommand.cs
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see we can not create tests but maybe it makes sense to add pending dump test to clearly show that we know about it?
|
It's part of the default cmdlets tests verifying it exists on Windows, but not Linux/macOS. Eventually, we want to investigate all pending tests and not have them pending. |
This is related to PowerShell#10909
This is related to PowerShell#10909
|
I looked at emptying the macOS trash Some items the normal user doesn't have permissions to. |
|
🎉 Handy links: |
PR Summary
Add back
Clear-RecycleBincmdlet for Windows for parity with Windows PowerShell. Addressed misuse of GetLastError() by removing error handling since the API returns error only if recycle bin is empty already which is not useful for this cmdlet.PR Context
FIx #6743
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:or[ WIP ]to the beginning of the title (theWIPbot will keep its status check atPendingwhile the prefix is present) and remove the prefix when the PR is ready.