T
T
torchfinger2021-12-14 14:52:55
Python
torchfinger, 2021-12-14 14:52:55

How to empty the trash using Python?

You need to remove a specific file from the trash.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
SHADRIN, 2021-12-14
@shadrin_ss

import os
os.system("rd /s /q %systemdrive%\$Recycle.bin")

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question