<?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>topic Am I able to delete an offline map area through the REST API in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/am-i-able-to-delete-an-offline-map-area-through/m-p/1523760#M4819</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have implemented being able to create map areas through the REST API in my application, and was wondering if it was possible to delete these areas once I am done with them through the REST API, without having to go to the map item on the arcgis website.&lt;/P&gt;&lt;P&gt;The URL i used to create the item is:&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://packaging.arcgis.com/arcgis/rest/services/OfflinePackaging/GPServer/CreateMapArea/submitJob" target="_blank" rel="noopener"&gt;https://packaging.arcgis.com/arcgis/rest/services/OfflinePackaging/GPServer/CreateMapArea/submitJob&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Aug 2024 13:38:37 GMT</pubDate>
    <dc:creator>Gravixx</dc:creator>
    <dc:date>2024-08-19T13:38:37Z</dc:date>
    <item>
      <title>Am I able to delete an offline map area through the REST API</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/am-i-able-to-delete-an-offline-map-area-through/m-p/1523760#M4819</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have implemented being able to create map areas through the REST API in my application, and was wondering if it was possible to delete these areas once I am done with them through the REST API, without having to go to the map item on the arcgis website.&lt;/P&gt;&lt;P&gt;The URL i used to create the item is:&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://packaging.arcgis.com/arcgis/rest/services/OfflinePackaging/GPServer/CreateMapArea/submitJob" target="_blank" rel="noopener"&gt;https://packaging.arcgis.com/arcgis/rest/services/OfflinePackaging/GPServer/CreateMapArea/submitJob&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2024 13:38:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/am-i-able-to-delete-an-offline-map-area-through/m-p/1523760#M4819</guid>
      <dc:creator>Gravixx</dc:creator>
      <dc:date>2024-08-19T13:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: Am I able to delete an offline map area through the REST API</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/am-i-able-to-delete-an-offline-map-area-through/m-p/1529384#M4829</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/822261"&gt;@Gravixx&lt;/a&gt;&amp;nbsp;, I hope you are doing well!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is a way to do this sending the &lt;STRONG&gt;deleteItems &lt;/STRONG&gt;REST operation as a&lt;STRONG&gt; POST&lt;/STRONG&gt; request if we know the offline Map Area's Item ID!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We can specify the Map Area's item ID in the &lt;STRONG&gt;items &lt;/STRONG&gt;parameter in the &lt;STRONG&gt;deleteItems&amp;nbsp;&lt;/STRONG&gt;request, append a &lt;STRONG&gt;token&lt;/STRONG&gt;, and an output format (&lt;STRONG&gt;f&lt;/STRONG&gt;), and it will delete the offline area through REST&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think there may be a better way to retrieve Map Area's item ID, but here's an example of doing it programmatically through the ArcGIS API for Python: &lt;A href="https://community.esri.com/t5/arcgis-field-maps-questions/can-you-delete-offline-areas-with-python/m-p/1369311/highlight/true#M7731" target="_blank"&gt;https://community.esri.com/t5/arcgis-field-maps-questions/can-you-delete-offline-areas-with-python/m-p/1369311/highlight/true#M7731&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We can also retrieve Map Area's item IDs using ArcGIS Assistant: &lt;A href="https://assistant.esri-ps.com/" target="_blank"&gt;https://assistant.esri-ps.com/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Documentation:&lt;BR /&gt;&lt;/STRONG&gt;ArcGIS REST APIs - /deleteItems: Delete Items&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/rest/users-groups-and-items/delete-items/" target="_blank"&gt;https://developers.arcgis.com/rest/users-groups-and-items/delete-items/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2024 14:03:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/am-i-able-to-delete-an-offline-map-area-through/m-p/1529384#M4829</guid>
      <dc:creator>Tyler_M</dc:creator>
      <dc:date>2024-08-29T14:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: Am I able to delete an offline map area through the REST API</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/am-i-able-to-delete-an-offline-map-area-through/m-p/1529425#M4830</link>
      <description>&lt;P&gt;Thankyou for the response! I've run into another issue when packaging offline map areas through the REST API, it just stays packaging for days even when its just a 1km by 1km area thats being packaged. Would you have any idea why? Again thankyou for the help with the deletion request.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2024 14:34:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/am-i-able-to-delete-an-offline-map-area-through/m-p/1529425#M4830</guid>
      <dc:creator>Gravixx</dc:creator>
      <dc:date>2024-08-29T14:34:50Z</dc:date>
    </item>
  </channel>
</rss>

