ArcGIS Pro SDK - Delete Project item (eg. Maps)

110
1
Jump to solution
05-05-2021 10:57 AM
Labels (1)
julian_svcs
New Contributor III

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.

Tags (4)
0 Kudos
1 Solution

Accepted Solutions
julian_svcs
New Contributor III

Sorry for answering my own question but I found the call to delete a project item:

Project.Current.RemoveItem(OriginalLayoutMap);

 

View solution in original post

0 Kudos
1 Reply
julian_svcs
New Contributor III

Sorry for answering my own question but I found the call to delete a project item:

Project.Current.RemoveItem(OriginalLayoutMap);

 

View solution in original post

0 Kudos