<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>idea Removing map from ArcGIS Pro project using ArcPy in ArcGIS Pro Ideas</title>
    <link>https://community.esri.com/t5/arcgis-pro-ideas/removing-map-from-arcgis-pro-project-using-arcpy/idi-p/946837</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a desirable requirement to be able to remove a map from an ArcGIS Pro project using ArcPy.&lt;/P&gt;&lt;P&gt;However the &lt;A href="https://pro.arcgis.com/en/pro-app/arcpy/mapping/arcgisproject-class.htm#M2_GUID-1117B216-CE8B-47A9-998B-6143907D3165"&gt;ArcGISProject class&lt;/A&gt; does not seem to provide a method to do this.&lt;/P&gt;&lt;P&gt;I would like ArcPy&amp;nbsp;to be enhanced to allow this.&lt;/P&gt;&lt;P&gt;My use case is a map automation&amp;nbsp;application where I need to maintain three maps to support three MGA Zones (Australian "equivalent" to supporting three UTM Zones).&amp;nbsp; When the application exports a PDF at the end I also save a copy of the APRX so that the user wanting the PDF can, if need be, open up a copy of the project that created it (think of it as a draft), and perform some modifications before saving a final project/PDF.&amp;nbsp; Since each PDF only uses one of the MGA Zone maps I would like to unclutter the project before saving the copy by removing the other two MGA Zone maps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 17 Jun 2017 08:53:51 GMT</pubDate>
    <dc:creator>GraemeBrowning</dc:creator>
    <dc:date>2017-06-17T08:53:51Z</dc:date>
    <item>
      <title>Removing map from ArcGIS Pro project using ArcPy</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/removing-map-from-arcgis-pro-project-using-arcpy/idi-p/946837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a desirable requirement to be able to remove a map from an ArcGIS Pro project using ArcPy.&lt;/P&gt;&lt;P&gt;However the &lt;A href="https://pro.arcgis.com/en/pro-app/arcpy/mapping/arcgisproject-class.htm#M2_GUID-1117B216-CE8B-47A9-998B-6143907D3165"&gt;ArcGISProject class&lt;/A&gt; does not seem to provide a method to do this.&lt;/P&gt;&lt;P&gt;I would like ArcPy&amp;nbsp;to be enhanced to allow this.&lt;/P&gt;&lt;P&gt;My use case is a map automation&amp;nbsp;application where I need to maintain three maps to support three MGA Zones (Australian "equivalent" to supporting three UTM Zones).&amp;nbsp; When the application exports a PDF at the end I also save a copy of the APRX so that the user wanting the PDF can, if need be, open up a copy of the project that created it (think of it as a draft), and perform some modifications before saving a final project/PDF.&amp;nbsp; Since each PDF only uses one of the MGA Zone maps I would like to unclutter the project before saving the copy by removing the other two MGA Zone maps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Jun 2017 08:53:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/removing-map-from-arcgis-pro-project-using-arcpy/idi-p/946837</guid>
      <dc:creator>GraemeBrowning</dc:creator>
      <dc:date>2017-06-17T08:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: Removing map from ArcGIS Pro project using ArcPy</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/removing-map-from-arcgis-pro-project-using-arcpy/idc-p/946838#M6456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I also have a requirement to be able to remove Layouts from an aprx using Arcpy.mp. Arcpro has simplfied map templates as you can now keep all template variations of paper size/orientation in one project file. The draw back is that when&amp;nbsp;requiring&amp;nbsp;just one layout of many, there is no way in arcpy.mp to strip out the unneeded layouts from the project.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2018 20:25:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/removing-map-from-arcgis-pro-project-using-arcpy/idc-p/946838#M6456</guid>
      <dc:creator>GeoNZ</dc:creator>
      <dc:date>2018-09-10T20:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: Removing map from ArcGIS Pro project using ArcPy</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/removing-map-from-arcgis-pro-project-using-arcpy/idc-p/946839#M6457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ArcGIS Pro 2.3 is very slow with multiple Maps (and Layouts).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We need this feature in arcpy to enable us to write clean-up scripts to help ArcGIS Pro running.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2019 11:04:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/removing-map-from-arcgis-pro-project-using-arcpy/idc-p/946839#M6457</guid>
      <dc:creator>ThomasL</dc:creator>
      <dc:date>2019-02-14T11:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: Removing map from ArcGIS Pro project using ArcPy</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/removing-map-from-arcgis-pro-project-using-arcpy/idc-p/1133933#M18322</link>
      <description>&lt;P&gt;We've encountered a bug when working on a scripting tool that has created multiple maps that are not visible in the catalog but listed when trying to export the APRX.&amp;nbsp; Without an arcpy module to delete the added map packages and not having them visible in the catalog we are unable to delete the added maps.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jan 2022 16:41:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/removing-map-from-arcgis-pro-project-using-arcpy/idc-p/1133933#M18322</guid>
      <dc:creator>MatthewWStelmach</dc:creator>
      <dc:date>2022-01-14T16:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: Removing map from ArcGIS Pro project using ArcPy</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/removing-map-from-arcgis-pro-project-using-arcpy/idc-p/1161180#M19241</link>
      <description>&lt;P&gt;I am interested in this functionality as well. My use case is trying to interrogate mxd files from ArcPro&amp;nbsp; using the importDocument method.&amp;nbsp; So far I have not found a way to access arcpy.mp properties without first importing the map to a project.&amp;nbsp; I can import mxds just fine but there doesn't seem to be a way to programmatically get rid of them when desired after bringing them into the project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 15:23:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/removing-map-from-arcgis-pro-project-using-arcpy/idc-p/1161180#M19241</guid>
      <dc:creator>JTLancer</dc:creator>
      <dc:date>2022-04-05T15:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: Removing map from ArcGIS Pro project using ArcPy - Status changed to: In Product Plan</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/removing-map-from-arcgis-pro-project-using-arcpy/idc-p/1162174#M19276</link>
      <description>&lt;P&gt;We hope to include a number of project item management functions (e.g., Delete, Copy, Add folder connections, database connections ,etc).&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 16:08:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/removing-map-from-arcgis-pro-project-using-arcpy/idc-p/1162174#M19276</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2022-04-07T16:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: Removing map from ArcGIS Pro project using ArcPy</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/removing-map-from-arcgis-pro-project-using-arcpy/idc-p/1173191#M19522</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1134"&gt;@JeffBarrette&lt;/a&gt;&amp;nbsp;That is great to hear! Removing and adding folder and database connections from a project would be so useful. All I seem to able to do at the moment is change the defaults&lt;BR /&gt;&lt;BR /&gt;Any idea if this is coming soon??&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 08:08:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/removing-map-from-arcgis-pro-project-using-arcpy/idc-p/1173191#M19522</guid>
      <dc:creator>RichardHowe</dc:creator>
      <dc:date>2022-05-12T08:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: Removing map from ArcGIS Pro project using ArcPy</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/removing-map-from-arcgis-pro-project-using-arcpy/idc-p/1173768#M19550</link>
      <description>&lt;P&gt;We started to prototype removing project items recently.&amp;nbsp; Our current plan it to support this at Pro 3.1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jeff - Layout and arcpy.mp teams&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 16:06:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/removing-map-from-arcgis-pro-project-using-arcpy/idc-p/1173768#M19550</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2022-05-13T16:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: Removing map from ArcGIS Pro project using ArcPy</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/removing-map-from-arcgis-pro-project-using-arcpy/idc-p/1174770#M19609</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1134"&gt;@JeffBarrette&lt;/a&gt;&amp;nbsp;Thank you for taking the time to reply and keeping us informed. That's excellent news. I look forward to it!!&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 19:21:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/removing-map-from-arcgis-pro-project-using-arcpy/idc-p/1174770#M19609</guid>
      <dc:creator>RichardHowe</dc:creator>
      <dc:date>2022-05-17T19:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: Removing map from ArcGIS Pro project using ArcPy</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/removing-map-from-arcgis-pro-project-using-arcpy/idc-p/1223923#M21770</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1134"&gt;@JeffBarrette&lt;/a&gt;&amp;nbsp;+1 from me.&amp;nbsp; Also awaiting a method to remove a Map from an ArcGISProject.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 17:43:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/removing-map-from-arcgis-pro-project-using-arcpy/idc-p/1223923#M21770</guid>
      <dc:creator>banders</dc:creator>
      <dc:date>2022-10-20T17:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: Removing map from ArcGIS Pro project using ArcPy</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/removing-map-from-arcgis-pro-project-using-arcpy/idc-p/1226150#M21907</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1134"&gt;@JeffBarrette&lt;/a&gt;&amp;nbsp;+1 from us too! Would come in handy for a great number of situations.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2022 14:12:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/removing-map-from-arcgis-pro-project-using-arcpy/idc-p/1226150#M21907</guid>
      <dc:creator>John_Spence</dc:creator>
      <dc:date>2022-10-27T14:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: Removing map from ArcGIS Pro project using ArcPy - Status changed to: Implemented</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/removing-map-from-arcgis-pro-project-using-arcpy/idc-p/1266253#M23641</link>
      <description>&lt;P&gt;This Idea has been implemented in ArcGIS Pro 3.1. Please see the &lt;A href="https://pro.arcgis.com/en/pro-app/latest/get-started/whats-new-in-arcgis-pro.htm" target="_blank" rel="noopener"&gt;What's New documentation&lt;/A&gt; for more new features in Pro 3.1.&lt;/P&gt;&lt;P&gt;The Ideas in ArcGIS Pro 3.1 blog will be wrapped up soon. Once complete, I will add the link to this comment.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 14:52:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/removing-map-from-arcgis-pro-project-using-arcpy/idc-p/1266253#M23641</guid>
      <dc:creator>AmeliaBradshaw</dc:creator>
      <dc:date>2023-03-10T14:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: Removing map from ArcGIS Pro project using ArcPy</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/removing-map-from-arcgis-pro-project-using-arcpy/idc-p/1345642#M26820</link>
      <description>&lt;P&gt;I rather think Amelie misread this enhancement and incorrectly marked the original request as implemented.&lt;/P&gt;&lt;P&gt;The original enhancement straightforwardly asks "&lt;SPAN&gt;I have a desirable requirement to be able to remove &lt;EM&gt;&lt;STRONG&gt;a map&lt;/STRONG&gt;&lt;/EM&gt; from an ArcGIS Pro project using ArcPy." - emphasis mine.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The provided 3.1 enhancement is in that vein of course, it provides a method to close&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;all&lt;/STRONG&gt; &lt;STRONG&gt;maps.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;See&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/arcgisproject-class.htm#M1_GUID-1117B216-CE8B-47A9-998B-6143907D3165" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/arcgisproject-class.htm#M1_GUID-1117B216-CE8B-47A9-998B-6143907D3165&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However,&amp;nbsp;Graeme is asking for a method to close one single map, not all of them.&amp;nbsp; So if a user has 100 maps open, we seek to close map #87 leaving the other 99 just as they are.&amp;nbsp; The aprx.closeViews() method does not address that need.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Could we thus reopen this enhancement?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It should also include a method to list the current open views as its difficult to know the items to close when one does not know what is open.&amp;nbsp; If this is not possible in future Pro iterations a note mentioning that would be helpful as well.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 16:55:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/removing-map-from-arcgis-pro-project-using-arcpy/idc-p/1345642#M26820</guid>
      <dc:creator>PaulDziemiela21</dc:creator>
      <dc:date>2023-11-03T16:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Removing map from ArcGIS Pro project using ArcPy</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/removing-map-from-arcgis-pro-project-using-arcpy/idc-p/1345983#M26827</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/437698"&gt;@PaulDziemiela21&lt;/a&gt;&amp;nbsp;I don't think Amelia misread it at all. The original post was asking for a method to&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;remove&lt;/STRONG&gt;&lt;/EM&gt; a map from a project.&lt;BR /&gt;&lt;BR /&gt;The&amp;nbsp;&lt;SPAN&gt;deleteItem (project_item) method, clearly provides for that and the post is correctly marked as implemented&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What you are asking&amp;nbsp;for may well be desirable functionality, but it is a new (and different) request from the original post and as such deserves its own post on the board&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 09:07:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/removing-map-from-arcgis-pro-project-using-arcpy/idc-p/1345983#M26827</guid>
      <dc:creator>RichardHowe</dc:creator>
      <dc:date>2023-11-06T09:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: Removing map from ArcGIS Pro project using ArcPy</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/removing-map-from-arcgis-pro-project-using-arcpy/idc-p/1346015#M26829</link>
      <description>&lt;P&gt;Hi Richard,&lt;/P&gt;&lt;P&gt;I suppose its about our interpretation of Graeme's requirement and what his verb, remove, means in the Pro catalog context.&amp;nbsp; I'll admit I was reading into things from this supporting stack exchange&lt;BR /&gt;&lt;A href="https://gis.stackexchange.com/questions/463961/closing-single-map-view-in-arcgis-pro-using-arcpy" target="_blank"&gt;https://gis.stackexchange.com/questions/463961/closing-single-map-view-in-arcgis-pro-using-arcpy&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If the requirement and the solution is to delete (not close) individual maps, then I apologize and the requirement is met.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 11:45:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/removing-map-from-arcgis-pro-project-using-arcpy/idc-p/1346015#M26829</guid>
      <dc:creator>PaulDziemiela21</dc:creator>
      <dc:date>2023-11-06T11:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: Removing map from ArcGIS Pro project using ArcPy</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/removing-map-from-arcgis-pro-project-using-arcpy/idc-p/1346178#M26836</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/437698"&gt;@PaulDziemiela21&lt;/a&gt;&amp;nbsp;, perhaps there is some understandable confusion with the term 'Map' - project item that defines a list of symbolized layers and a spatial reference like in the original statement "supporting three UTM Zones"&amp;nbsp; vs a 'MapView' - a window to display a Map where you can have one or many views displaying the same map, perhaps each with a different extents, for example.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For managing a map project item, we have the ArcGISProject.deleteItem() method. I believe this addresses the original idea that we closed.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the discussion was intended to address closing MapView's then ...&lt;/P&gt;&lt;P&gt;MapViews do NOT have unique names so it is not currently possible in arcpy.mp to reference a specific MapView (e.g., 1 out of X) to close it.&amp;nbsp;&amp;nbsp;The best, current solution is to reference the project item (map, layout, or report) and call openView().&amp;nbsp; This will open and activate the view.&amp;nbsp; If you don't want too many views open, there is also the option to call ArcGISProject.closeViews().&amp;nbsp; This allows you to do some clean up before opening a new map view.&amp;nbsp; There is a discussion about this in the same help topic listed above. It is very easy to close all views and then open the one or select few you want to see.&amp;nbsp; Also understand that these map views exist when the application is open.&amp;nbsp; If you are running Python scripts outside of the application, you can't work with views at all.&lt;/P&gt;&lt;P&gt;I completely understand your requirement but currently there is no way we can address it.&lt;/P&gt;&lt;P&gt;Jeff - Layout and arcpy.mp teams&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 16:42:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/removing-map-from-arcgis-pro-project-using-arcpy/idc-p/1346178#M26836</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2023-11-06T16:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: Removing map from ArcGIS Pro project using ArcPy</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/removing-map-from-arcgis-pro-project-using-arcpy/idc-p/1387072#M28727</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/75013"&gt;@RichardHowe&lt;/a&gt;&amp;nbsp;Where is the deleteItem function in arcpy?&lt;/P&gt;&lt;P&gt;I do not see it when I search the ArcGIS Pro documentation.&lt;/P&gt;&lt;P&gt;I am a little confused, but the original question seemed like "How to remove map from ArcGIS Project using arcpy?" Was this functionality implemented?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 22:12:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/removing-map-from-arcgis-pro-project-using-arcpy/idc-p/1387072#M28727</guid>
      <dc:creator>uasdev</dc:creator>
      <dc:date>2024-02-26T22:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: Removing map from ArcGIS Pro project using ArcPy</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/removing-map-from-arcgis-pro-project-using-arcpy/idc-p/1387084#M28728</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/259121"&gt;@sadlkjiouasdf&lt;/a&gt;&amp;nbsp;try ArcGISProject.deleteItem(project_item)&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/arcgisproject-class.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/arcgisproject-class.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jeff - Layout SDK and arcpy.mp teams&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 22:38:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/removing-map-from-arcgis-pro-project-using-arcpy/idc-p/1387084#M28728</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2024-02-26T22:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Removing map from ArcGIS Pro project using ArcPy</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/removing-map-from-arcgis-pro-project-using-arcpy/idc-p/1641407#M35852</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1134"&gt;@JeffBarrette&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Would the deleteItem method work on an .aprx that is not open?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like to iterate over multiple project files and remove certain map/layout items without having to open each one. Ultimately I'd also like to import new .mapx , .pagx, and .lyrx files as well but first things first.&lt;/P&gt;&lt;P&gt;I have attempted this with the following code run from a Notebook, but it never completes (the kernel hangs in "Busy" mode. Maybe I just have to be real patient but I am wondering if I'm missing something.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcpy
aprx_path = r"file_path.aprx" 
p = arcpy.mp.ArcGISProject(aprx_path)
m = p.listMaps("map name")[0]
p.deleteItem(m)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;</description>
      <pubDate>Tue, 12 Aug 2025 21:05:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/removing-map-from-arcgis-pro-project-using-arcpy/idc-p/1641407#M35852</guid>
      <dc:creator>JohnButcher</dc:creator>
      <dc:date>2025-08-12T21:05:14Z</dc:date>
    </item>
  </channel>
</rss>

