I am running a python script to create map tile packages from a series of maps containing imagery within an ArcPro project. The code halts when it gets to "Map 3". There is no Map 3 in my ArcPro project. When I click on the drop down arrow to see the list of maps, it is not there. However, when I open the "Create Map Tile Package" geoprocessing tool it sees a Map 3. How do I get rid of relic maps? This has happened to me many times before. See the images below.
You can see Map 3 listed in the There is no Map 3 in the list of maps.
geoprocessing task above.
Try clearing your map server cache.
https://pro.arcgis.com/en/pro-app/latest/tool-reference/server/delete-map-server-cache.htm
I have a similar issue where i seem to have phantom map containers in my aprx, anyone have a solution other than recreating a new aprx?