Forums

will pythonanywhere automatically clean up /tmp

Hi,

when I run selenium, there will be lots of data generated in /tmp, and I don't need them. I wonder if my storage limit is filled when the /tmp is filled, will pythonanywhere delete the /tmp file for me?

Thank you.

We have no way of knowing which files in /tmp are still necessary for the programs you are running or are going to run in future, so we do not do anything to them. That means that we will not accidentally delete a /tmp file that you need, but it also means that you need to clear down stuff from /tmp based on what you know about the programs you run. For selenium, the tmp files are useless after the process has exited so, if you know that you do not have any selenium processes running and don't have anything else running that uses /tmp, you can safely delete everything in /tmp.

I was shown that my disk space is full (10% more) and I was told to remove files in /tmp folder. But I don't see /tmp folder? What is going on, please?

You definitely should have a "/tmp/" directory. Thought it may not free up enough space in your case