Clear-RecycleBin

 

Clear-RecycleBin [[-DriveLetter] [<String[]>]] [-Force] [-Confirm] [-WhatIf] [<CommonParameters>]
Parameters
-DriveLetter [<String[]>]

Specifies an array of drive letters for which this cmdlet clears the recycle bin.

-Force [<SwitchParameter>]

Forces the command to run without asking for user confirmation.

-Confirm [<SwitchParameter>]

  • Default value is false

Prompts you for confirmation before running the cmdlet.Prompts you for confirmation before running the cmdlet.

-WhatIf [<SwitchParameter>]

  • Default value is false

Shows what would happen if the cmdlet runs. The cmdlet is not run.Shows what would happen if the cmdlet runs. The cmdlet is not run.

<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,ErrorAction, ErrorVariable, WarningAction, WarningVariable,OutBuffer, PipelineVariable, and OutVariable.