in 6.1.2 this command works : Remove-Item C:\Users\david\OneDrive\Documents\ -Recurse
but in 6.2.0-rc.1 I get this error
PS C:\Users\david> Remove-Item C:\Users\david\OneDrive\Documents\ -Recurse
Remove-Item : Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
At line:1 char:1
- Remove-Item C:\Users\david\OneDrive\Documents\ -Recurse
-
- CategoryInfo : NotSpecified: (:) [Remove-Item], FormatException
- FullyQualifiedErrorId : System.FormatException,Microsoft.PowerShell.Commands.RemoveItemCommand
in 6.1.2 this command works : Remove-Item C:\Users\david\OneDrive\Documents\ -Recurse
but in 6.2.0-rc.1 I get this error
PS C:\Users\david> Remove-Item C:\Users\david\OneDrive\Documents\ -Recurse
Remove-Item : Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
At line:1 char:1