I am not sure where to put this question...
We are running python tools on a machine that has server only (no desktop).
We are running the python in "desktop mode" (using batch files), not as gp services.
We use the server license and the server arcpy libraries to run our code.
Each run write an XML into
This directory become very big.
Is there any setting that will stop creating this files?
In ArcMap you just have the geoprocessing option but this machine does not has ArcMap installed.
This tech support paper ( How To: Delete geoprocessing history from a geodatabase ) provides a basis with which to manage gp history. Note however that this approach uses arcpy references that as of this writing are not yet available for pro, so you'll need to execute it with a 2.x python/arcpy interpreter.