Skip to content Skip to sidebar Skip to footer

How To Delete Temp Folder Data Using Python Script

how can I create python script to delete data in temp folder in windows environment system.

Solution 1:

you can go like this

import os
os.remove("C:\Windows\Prefetch\*.*")
os.remove("C:\Windows\Temp\*.*")
os.remove("C:\Users\Your_User_Name\AppData\Roaming\Microsoft\Windows\Recent Items*.*")

Post a Comment for "How To Delete Temp Folder Data Using Python Script"