I am adding to this old thread because I have a development AGS 10.3.1 environment where the temp file directory is getting filled up (its on the C-drive) and it is now causing server usage problems due to low space.
Does anyone know if the files and folders in this temp directory can just be deleted without any negative repercussions to the AGS site?
Does AGS write cache files (compact or exploded) to the temp directory if there are problems during the cache creation process? There are bundle files here that are taking up a significant amount of room, but AGS was configured to write these files to another location with much more storage space that can easily be expanded.
Wow, this was a blast from the past.
I recently ran into this same issue with an ArcGIS Server running 10.5.1 on Windows 2012 R2. It was a production server so I checked with ESRI support before deleting the files b/c I'm that kind of paranoid.
Can confirm, these are mostly alright to delete. I did have a few exceptions where the temp files had file locks because they were currently being used, but I cleared out 68GB of temp files going back 5 years. I just selected them all and explorer let me skip over the ones currently being held by a file lock.
I checked the documentation and couldn't find anything about files in the server user account temp directory. Just to be clear, I'm talking about files residing under %systemdrive%\Users\<server account>\AppData and not any of the ArcGIS Server install or content directories.