Skip to content

Instantly share code, notes, and snippets.

@yutsuku
Created February 12, 2022 15:30
Show Gist options
  • Save yutsuku/ed204d54016c7177cc595eb173647d11 to your computer and use it in GitHub Desktop.
Save yutsuku/ed204d54016c7177cc595eb173647d11 to your computer and use it in GitHub Desktop.
# Delete everything in current location using path literal.
# Windows explorer and regular commands are unable to delete those folders/files due to invalid characters.
Get-ChildItem -Recurse | ForEach-Object { Remove-Item -LiteralPath "\\?\$($_.FullName)" -Force }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment