RecycleBinUtilClean Method

Cleans the Recycle Bin of an specific Drive.

Definition

Namespace: DevCase.ThirdParty.WindowsApiCodePack
Assembly: DevCase.net48.ThirdParty.WindowsApiCodePack (in DevCase.net48.ThirdParty.WindowsApiCodePack.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static bool Clean(
	char driveLetter,
	RecycleFlags flags = 
)

Parameters

driveLetter  Char
The recycle bin drive letter. If this parameter is then it cleans all the Recycle Bins.
flags  RecycleFlags  (Optional)
The recycle bin behavior.

Return Value

Boolean
if operation succeeds, otherwise.

Remarks

Note: Some functionalities of this assembly may require to install one or all of the listed NuGet packages:

https://www.nuget.org/packages/WindowsAPICodePack

See Also