PowerShell custom provider RemoveItem
问题 I'm implementing a custom PowerShell provider. I'm now working on the remove-item cmdlet implementation. The RemoveItem method has the following signature: protected override void RemoveItem(string path, bool recurse) When I type: Remove-Item .\Myobject -recurse the PowerShell infrastructure provides me with the value true in the recurse parameter of the RemoveItem method. However when I type: Remove-Item .\MyObject' I get a question: The item at MyObject has children and the Recurse