I was wondering if there is any way to auto delete the simulation folder after the simulation has run. Of course I can script it manually, but I noticed that in general, these simulations take up a lot of storage space. Since I am not using the folder afterwards, it would be great if there would be an argument to delete the folder afterwards.
The usual way that we deal with this issue is just by not changing the simulation directory each time that we run a simulation that we aren’t particularly concerned about saving the results:
Thanks for your answer! I fully understand your reasoning. Perhaps I am working with a bit of an exceptional case, because I am running my recipe in parallel using multiprocessing. Therefore, I think I have to specifically add a directory because processes would otherwise try to access the same simulation files. This in general works pretty good, but after running my simulations for a few hours, I noticed that my disk is lacking in space for the simulation files, and therefore fails to continue.
I was able to find a partial solution by deleting my project directory after the simulation has finished using:
However, after running the script for several hours, Radiance/Honeybee starts complaining about certain files that do not exist, such as:
Invalid result folder: d:/graduation_jobdevogel/code/Graduation-Building-Technology/data/simulation/0eae245e-be93-4f69-8cd5-319525c0405e\cumulative_radiation\results/cumulative_radiation
I have not found a reason for this problem, but I can imagine it is probably caused by a bug in my script, or the way Windows is using the multiple process. It is a bit hard to figure out because it only happens after at least 10 hours of running my simulations If you have ideas what could be causing this issue, please let me know!