You have to be old enough to remember DOS
create a logoff script?
rd "%temp%\Planetside Software\Terragen 2" /s /q
md "%temp%\Planetside Software\Terragen 2"or run TG2 via a .bat. (For users of the free version %terragen_path% is a manually defined environment variable for the directory containing the TG2 application) Using "start /wait" causes the script to wait for TGD to exit before removing the temp directory.
start /wait %terragen_path%\tgd.exe
rd "%temp%\Planetside Software\Terragen 2" /s /q
md "%temp%\Planetside Software\Terragen 2"Personally I'd prefer the former, or even just manually run the script when I wanted to cleanup. The latter solution is OK, but I use the CLI version and pipe it's output to a log file for bug checking/ reference and that doesn't work with this syntax.
There must be a similar solution for Macs. Basically all these commands do is trash the Terragen 2 temporary directory with all of its subdirectories and then recreates the Terragen 2 directory. The last step technically isn't necessary as TG2 creates the directory as required but it's nice to be tidy