<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Can I safely clear out XML files from ArcToolBox History folder? in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/can-i-safely-clear-out-xml-files-from-arctoolbox/m-p/1214053#M59993</link>
    <description>&lt;P&gt;Here are your candidate environments accessed via arcpy.&lt;/P&gt;&lt;P&gt;I work on one machine, using locally stored data, so yours will differ.&amp;nbsp; I have nothing in the ...&amp;nbsp; Appdata\ Roaming ... folder at all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcpy

environments = arcpy.ListEnvironments()

environments.sort()

for environment in environments:
    # Format and print each environment and its current setting.
    # (The environments are accessed by key from arcpy.env.)
    print("{0:&amp;lt;30}: {1}".format(environment, arcpy.env[environment]))
    
MDomain                       : None
MResolution                   : None
MTolerance                    : None
S100FeatureCatalogueFile      : None
XYDomain                      : None
XYResolution                  : None
XYTolerance                   : None
ZDomain                       : None
ZResolution                   : None
ZTolerance                    : None
addOutputsToMap               : True
annotationTextStringFieldLength: None
autoCancelling                : True
autoCommit                    : 1000
baDataSource                  : None
baNetworkSource               : None
baUseDetailedAggregation      : False
buildStatsAndRATForTempRaster : True
cartographicCoordinateSystem  : None
cartographicPartitions        : None
cellAlignment                 : DEFAULT
cellSize                      : MAXOF
cellSizeProjectionMethod      : CONVERT_UNITS
coincidentPoints              : MEAN
compression                   : LZ77
configKeyword                 : None
extent                        : None
geographicTransformations     : None
gpuId                         : 0
isCancelled                   : False
maintainAttachments           : True
maintainCurveSegments         : None
maintainSpatialIndex          : False
mask                          : None
matchMultidimensionalVariable : True
nodata                        : NONE
outputCoordinateSystem        : None
outputMFlag                   : Same As Input
outputZFlag                   : Same As Input
outputZValue                  : None
overwriteOutput               : False
packageWorkspace              : C:\Users\dan_p\AppData\Local\Temp
parallelProcessingFactor      : None
preserveGlobalIds             : False
processingServer              : None
processingServerPassword      : None
processingServerUser          : None
processorType                 : None
pyramid                       : PYRAMIDS -1 NEAREST DEFAULT 75 NO_SKIP NO_SIPS
qualifiedFieldNames           : True
randomGenerator               : 0 ACM599
rasterStatistics              : STATISTICS 1 1
recycleProcessingWorkers      : None
referenceScale                : None
resamplingMethod              : NEAREST
retryOnFailures               : None
scratchFolder                 : C:\Users\dan_p\AppData\Local\Temp\scratch
scratchGDB                    : C:\Users\dan_p\AppData\Local\Temp\scratch.gdb
scratchWorkspace              : None
scriptWorkspace               : C:\Users\dan_p\AppData\Local\Temp
snapRaster                    : None
terrainMemoryUsage            : False
tileSize                      : 128 128
tinSaveVersion                : CURRENT
transferDomains               : False
transferGDBAttributeProperties: False
unionDimension                : False
workspace                     : None&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you might want to look at&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/functions/getloghistory.htm" target="_blank" rel="noopener"&gt;GetLogHistory—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/functions/setloghistory.htm" target="_blank" rel="noopener"&gt;SetLogHistory—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/functions/getlogmetadata.htm" target="_blank" rel="noopener"&gt;GetLogMetadata—ArcGIS Pro | Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/functions/setlogmetadata.htm" target="_blank" rel="noopener"&gt;SetLogMetadata—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;it looks like it can be shut off&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;..&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 20 Sep 2022 01:29:17 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2022-09-20T01:29:17Z</dc:date>
    <item>
      <title>Can I safely clear out XML files from ArcToolBox History folder?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/can-i-safely-clear-out-xml-files-from-arctoolbox/m-p/1214030#M59989</link>
      <description>&lt;P&gt;Greetings All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm doing a clean-out of my drive and noticed I have over 5GB of XML files in the following folder:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DarrenConly_0-1663630861662.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/51592i1495157E1A6A37E3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DarrenConly_0-1663630861662.png" alt="DarrenConly_0-1663630861662.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can I delete these without hurting anything? Should I delete through the File Explorer or can I do so through Arc Pro?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 23:43:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/can-i-safely-clear-out-xml-files-from-arctoolbox/m-p/1214030#M59989</guid>
      <dc:creator>DarrenConly</dc:creator>
      <dc:date>2022-09-19T23:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: Can I safely clear out XML files from ArcToolBox History folder?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/can-i-safely-clear-out-xml-files-from-arctoolbox/m-p/1214034#M59990</link>
      <description>&lt;P&gt;Analysis tab, left most tool on 2nd row... aka History.... click it.&lt;/P&gt;&lt;P&gt;Select and delete all that you don't want.&lt;/P&gt;&lt;P&gt;Check your options in Project, Options&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="history.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/51593i9FAF0F21330585B0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="history.png" alt="history.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 00:16:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/can-i-safely-clear-out-xml-files-from-arctoolbox/m-p/1214034#M59990</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2022-09-20T00:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: Can I safely clear out XML files from ArcToolBox History folder?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/can-i-safely-clear-out-xml-files-from-arctoolbox/m-p/1214045#M59992</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/215600"&gt;@DanPatterson&lt;/a&gt;,&amp;nbsp;Thanks for quick reply.&lt;/P&gt;&lt;P&gt;Referring to your Options screenshot, I confirmed that the "log to XML" box is un-checked.&lt;/P&gt;&lt;P&gt;Based on a test, the XML files appear to get created when I run a python script that uses arcpy outside of Pro, e.g., when I run through VSCode or some similar interpreter. Specifically, when I ran a script via VSCode, it made a new XML file, but when I ran the same script via a Pro toolbox, it didn' t create an XML file.&lt;/P&gt;&lt;P&gt;So it seems like running arcpy script outside of Pro creates the XML file? I wonder if there's some env parameter you can set in the script to prevent creation of XML files?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 01:04:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/can-i-safely-clear-out-xml-files-from-arctoolbox/m-p/1214045#M59992</guid>
      <dc:creator>DarrenConly</dc:creator>
      <dc:date>2022-09-20T01:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: Can I safely clear out XML files from ArcToolBox History folder?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/can-i-safely-clear-out-xml-files-from-arctoolbox/m-p/1214053#M59993</link>
      <description>&lt;P&gt;Here are your candidate environments accessed via arcpy.&lt;/P&gt;&lt;P&gt;I work on one machine, using locally stored data, so yours will differ.&amp;nbsp; I have nothing in the ...&amp;nbsp; Appdata\ Roaming ... folder at all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcpy

environments = arcpy.ListEnvironments()

environments.sort()

for environment in environments:
    # Format and print each environment and its current setting.
    # (The environments are accessed by key from arcpy.env.)
    print("{0:&amp;lt;30}: {1}".format(environment, arcpy.env[environment]))
    
MDomain                       : None
MResolution                   : None
MTolerance                    : None
S100FeatureCatalogueFile      : None
XYDomain                      : None
XYResolution                  : None
XYTolerance                   : None
ZDomain                       : None
ZResolution                   : None
ZTolerance                    : None
addOutputsToMap               : True
annotationTextStringFieldLength: None
autoCancelling                : True
autoCommit                    : 1000
baDataSource                  : None
baNetworkSource               : None
baUseDetailedAggregation      : False
buildStatsAndRATForTempRaster : True
cartographicCoordinateSystem  : None
cartographicPartitions        : None
cellAlignment                 : DEFAULT
cellSize                      : MAXOF
cellSizeProjectionMethod      : CONVERT_UNITS
coincidentPoints              : MEAN
compression                   : LZ77
configKeyword                 : None
extent                        : None
geographicTransformations     : None
gpuId                         : 0
isCancelled                   : False
maintainAttachments           : True
maintainCurveSegments         : None
maintainSpatialIndex          : False
mask                          : None
matchMultidimensionalVariable : True
nodata                        : NONE
outputCoordinateSystem        : None
outputMFlag                   : Same As Input
outputZFlag                   : Same As Input
outputZValue                  : None
overwriteOutput               : False
packageWorkspace              : C:\Users\dan_p\AppData\Local\Temp
parallelProcessingFactor      : None
preserveGlobalIds             : False
processingServer              : None
processingServerPassword      : None
processingServerUser          : None
processorType                 : None
pyramid                       : PYRAMIDS -1 NEAREST DEFAULT 75 NO_SKIP NO_SIPS
qualifiedFieldNames           : True
randomGenerator               : 0 ACM599
rasterStatistics              : STATISTICS 1 1
recycleProcessingWorkers      : None
referenceScale                : None
resamplingMethod              : NEAREST
retryOnFailures               : None
scratchFolder                 : C:\Users\dan_p\AppData\Local\Temp\scratch
scratchGDB                    : C:\Users\dan_p\AppData\Local\Temp\scratch.gdb
scratchWorkspace              : None
scriptWorkspace               : C:\Users\dan_p\AppData\Local\Temp
snapRaster                    : None
terrainMemoryUsage            : False
tileSize                      : 128 128
tinSaveVersion                : CURRENT
transferDomains               : False
transferGDBAttributeProperties: False
unionDimension                : False
workspace                     : None&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you might want to look at&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/functions/getloghistory.htm" target="_blank" rel="noopener"&gt;GetLogHistory—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/functions/setloghistory.htm" target="_blank" rel="noopener"&gt;SetLogHistory—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/functions/getlogmetadata.htm" target="_blank" rel="noopener"&gt;GetLogMetadata—ArcGIS Pro | Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/functions/setlogmetadata.htm" target="_blank" rel="noopener"&gt;SetLogMetadata—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;it looks like it can be shut off&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;..&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 01:29:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/can-i-safely-clear-out-xml-files-from-arctoolbox/m-p/1214053#M59993</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2022-09-20T01:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: Can I safely clear out XML files from ArcToolBox History folder?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/can-i-safely-clear-out-xml-files-from-arctoolbox/m-p/1214073#M59994</link>
      <description>&lt;P&gt;Thanks Dan!&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Adding arcpy.SetLogHistory(False) made it so the script no longer creates XML files.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The method for listing environment settings is also useful.&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 03:09:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/can-i-safely-clear-out-xml-files-from-arctoolbox/m-p/1214073#M59994</guid>
      <dc:creator>DarrenConly</dc:creator>
      <dc:date>2022-09-20T03:09:32Z</dc:date>
    </item>
  </channel>
</rss>

