I would like to delete a Map (called Layers1) from my project using the ArcGIS Pro SDK. I do not see anywhere in the samples of SDK on how to delete items like this. I see how to delete layers in a map, but not a map itself.
Any assistance on this will be greatly apreciated.
Thanks, Julian.
Solved! Go to Solution.
Sorry for answering my own question but I found the call to delete a project item:
Project.Current.RemoveItem(OriginalLayoutMap);
Sorry for answering my own question but I found the call to delete a project item:
Project.Current.RemoveItem(OriginalLayoutMap);