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

973
1
Jump to solution
05-05-2021 10:57 AM
Labels (1)
julian_svcs
Occasional Contributor

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
Occasional Contributor

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
Occasional Contributor

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

Project.Current.RemoveItem(OriginalLayoutMap);

 

0 Kudos