Skip to main content

empty_recycle_bin

Function empty_recycle_bin 

Source
pub fn empty_recycle_bin() -> Result<()>
Expand description

Permanently empties the Recycle Bin for all drives without shell UI.

This operation cannot be undone through this crate.

§Errors

Returns Error::WindowsApi if SHEmptyRecycleBinW reports failure.

§Examples

win_desktop_utils::empty_recycle_bin()?;