Select to view content in your preferred language

Include "remove layers that reference data overwritten by geoprocessing tools" as arcpy.env property

809
1
02-14-2023 10:50 AM
Status: Open
Labels (1)
AaronCole1
Regular Contributor

I know it's a setting in the GP options, but would be nice to have as a counterpart to 'addOutputsToMap' to be able to force the option to remove layers that reference data overwritten by geoprocessing tools one way or another when using the Python window or a Notebook.

1 Comment
SRK
by

Yes please, this would be really good. Especially as this setting can be different per tool and should be possible to change during runtime. Updating or refreshing/replacing feature layers without removing them is quite important for scripts.