FileRecycleEmpty

Empties the recycle bin.

FileRecycleEmpty DriveLetter

Parameters

DriveLetter

Type: String

If omitted, the recycle bin for all drives is emptied. Otherwise, specify a drive letter such as "C:\".

Error Handling

An OSError is thrown on failure.

FileRecycle, FileDelete, FileCopy, FileMove

Examples

Empties the recycle bin of the C drive.

FileRecycleEmpty "C:\"