Contact Info

Crumbtrail » Administration » Powershell » Powershell 3.0 » Remove-Item

Remove-Item - Powershell 3.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »


Short description
Deletes files and folders.

Remove-Item [-Path] <String[]> [-Credential <PSCredential>] [-Exclude <String[]>] [-Filter <String>] [-Force] [-Include
 <String[]>] [-Recurse] [-Confirm] [-WhatIf] [-UseTransaction [<SwitchParameter>]] [<CommonParameters>]
Remove-Item [-Credential <PSCredential>] [-Exclude <String[]>] [-Filter <String>] [-Force] [-Include <String[]>] [-Recu
rse] -LiteralPath <String[]> [-Confirm] [-WhatIf] [-UseTransaction [<SwitchParameter>]] [<CommonParameters>]
Remove-Item [-Stream <string>] [<CommonParameters>]

The Remove-Item cmdlet deletes one or more items. Because it is supported by many providers, it can delete many differe
nt types of items, including files, directories, registry keys, variables, aliases, and functions.

In file system drives, the Remove-Item cmdlet deletes files and folders. 

If you use the Stream dynamic parameter, it deletes the specified alternate data stream, but does not delete the file.

Note: This custom cmdlet help file explains how the Remove-Item cmdlet works in a file system drive. For information ab
out the Remove-Item cmdlet in all drives, type "Get-Help Remove-Item -Path $null" or see Remove-Item at http://go.micro