PowerShell documentation, you are too honest.
Get-Help Remove-Item -Full
As I was retrieving information on "Remove-Item," this is what I came across. There is more detail beyond what I am showing, but pay attention to what is bolded.
NAME Remove-Item SYNOPSIS Deletes the specified items. SYNTAX Remove-Item [-path] <string[]> [-recurse] [-force] [-include <string[]>] [- exclude <string[]>] [-filter <string>] [-credential <PSCredential>] [-whatI f] [-confirm] [<CommonParameters>] Remove-Item [-literalPath] <string[]> [-recurse] [-force] [-include <string []>] [-exclude <string[]>] [-filter <string>] [-credential <PSCredential>] [-whatIf] [-confirm] [<CommonParameters>] DETAILED DESCRIPTION The Remove-Item cmdlet deletes one or more items. Because it is supported b y many providers, it can delete many different types of items, including fi les, directories, registry keys, variables, aliases, certificates, and func tions. PARAMETERS -path <string[]> Specifies a path to the items being removed. Wildcards are permitted. T he parameter name ("-Path") is optional. Required? true Position? 1 Default value N/A - The path must be specified Accept pipeline input? true (ByValue, ByPropertyName) Accept wildcard characters? true -recurse <SwitchParameter> Deletes the items in the specified locations and in all child items of the locations. The Recurse parameter in this cmdlet does not work properly. Required? false Position? named Default value False Accept pipeline input? false Accept wildcard characters? false
NAME Remove-Item
SYNOPSIS Deletes the specified items.
SYNTAX Remove-Item [-path] <string[]> [-recurse] [-force] [-include <string[]>] [- exclude <string[]>] [-filter <string>] [-credential <PSCredential>] [-whatI f] [-confirm] [<CommonParameters>]
Remove-Item [-literalPath] <string[]> [-recurse] [-force] [-include <string []>] [-exclude <string[]>] [-filter <string>] [-credential <PSCredential>] [-whatIf] [-confirm] [<CommonParameters>]
DETAILED DESCRIPTION The Remove-Item cmdlet deletes one or more items. Because it is supported b y many providers, it can delete many different types of items, including fi les, directories, registry keys, variables, aliases, certificates, and func tions.
PARAMETERS -path <string[]> Specifies a path to the items being removed. Wildcards are permitted. T he parameter name ("-Path") is optional.
Required? true Position? 1 Default value N/A - The path must be specified Accept pipeline input? true (ByValue, ByPropertyName) Accept wildcard characters? true
-recurse <SwitchParameter> Deletes the items in the specified locations and in all child items of the locations.
The Recurse parameter in this cmdlet does not work properly.
Required? false Position? named Default value False Accept pipeline input? false Accept wildcard characters? false
"Hmmm... Am I feeling lucky? Ahhh, what the hell, let's do it."
Remove-Item "C:\" -Recurse
Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.
© Copyright 2010 MuellerDesigns.net
Sign In