Is it a way to clear the tmp everytime I schedule task running a selenium python script? I would like to put the line in the python script
Is it a way to clear the tmp everytime I schedule task running a selenium python script? I would like to put the line in the python script
use os.remove
for files and shutil.rmtree
for directories.
for tmp file as well? As selenium store unused files over there
Yes, files in /tmp are just the same as any other files, so you can delete them by using those functions.