I'm trying to delete files that are in the recycle bin by using python, but i can't find a way to do it. Thanks.
For the Windows OS you can use the winshell module and it's empty method.
Emptying the recycle bin is as easy as:
import winshell
winshell.recycle_bin().empty(confirm=False, show_progress=False, sound=False)
See some examples here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With