I'm building a geoprocessing tool with a "Feature Set" input (GPFeatureRecordSetLayer) that will be used during the tool's execution. The result of the execution is a new layer with color indications that should be presented on top of the "Feature Set" for the user.
Any idea how to remove/hide the initial "Feature Set" layer from the Python side? or maybe update that input layer to be in the bottom of the map.
I've tried to use the "arcpy.Delete_management(desc.name)" that was able to delete the layer, but also caused ArcGIS Pro to throw endless errors.
Another question that might help is:
Where is that input layer stored? is it possible to access that using "arcpy.mapping.MapDocument" maybe...