Delete all Temp Files for Current User

Please use the script to clear all data from temporary folder

import os
import tempfile
def deletetempfiles():
    for rt, di, fi in os.walk(tempfile.gettempdir()):
        for fn in fi:
                os.remove(os.path.join(rt, fn))
            except Exception as e:
                print e
if __name__=='__main__':

Sample Output:

Most trash not in Temp folder. Most trash - at TemporaryInternetFiles.

Hello @Sergey

This mostly depends on what the computer is used for - browsing or running different applications.
We will request a script for the TemporaryInternetFiles as well

So, we need clear both :slight_smile:

Hello @Sergey ,

The script to also remove TemporaryInternetFiles has been requested! Thank you for the feedback.