7 lines
186 B
Python
Raw Normal View History

2022-10-15 07:28:44 +05:45
import winshell
try:
cmd = winshell.recycle_bin().empty(confirm=False, sound=True)
print("Recycle bin is emptied now !")
except cmd:
print("Recycle bin was already empty !")