shell.SHEmptyRecycleBin

SHEmptyRecycleBin(hwnd, path, flags)

Empties the recycle bin on the specified drive.

Parameters

hwnd : PyHANDLE

Handle to parent window, can be None

path : string

A NULL-terminated string that contains the path of the root drive on which the recycle bin is located. This parameter can contain the address of a string formatted with the drive, folder, and subfolder names (c:\\windows\\system . . .). It can also contain an empty string or NULL. If this value is an empty string or NULL, all recycle bins on all drives will be emptied.

flags : int

One of the SHERB_* values.

Comments

This method is only available in shell version 4.71. If the function is not available, a COM Exception with HRESULT=E_NOTIMPL will be raised.