I fear this is a super basic question, but I have not found an actual answer on line... If a user of a project in ArcGIS Pro wants to remove a layer, they simply right-click it and select "Remove" from the resulting menu. I'm curious how one would accomplish the same thing programmatically.
To create a layer you can simply do something like: FeatureLayer featLayer = LayerFactory.Instance.CreateFeatureLayer(params);
Is there an opposite equivalent of this? A RemoveFeatureLayer(params)? I can't seem to find anything for this.
Solved! Go to Solution.