<?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 Re: deleteItem with options = { 'force' : true } in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/deleteitem-with-options-force-true/m-p/105305#M4072</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Nov 2018 21:09:02 GMT</pubDate>
    <dc:creator>JeffTimm</dc:creator>
    <dc:date>2018-11-09T21:09:02Z</dc:date>
    <item>
      <title>deleteItem with options = { 'force' : true }</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/deleteitem-with-options-force-true/m-p/105303#M4070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When trying to delete an orphaned item in portal I get the following message.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #323232; background-color: #f3ded7;"&gt;Unable to reach the server where the service is. Consider using calling deleteItem with options = { 'force' : true } if the server won't be available anymore.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where or how do I use the options = {'force' : true}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot find this in any documentation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2018 18:57:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/deleteitem-with-options-force-true/m-p/105303#M4070</guid>
      <dc:creator>JeffTimm</dc:creator>
      <dc:date>2018-10-04T18:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: deleteItem with options = { 'force' : true }</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/deleteitem-with-options-force-true/m-p/105304#M4071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jeff,&lt;/P&gt;&lt;P&gt;You need to access the item using the ArcGIS REST API.&amp;nbsp;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;"&gt;Here's a link to the Esri documentation: &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/rest/users-groups-and-items/quick-reference.htm" style="background-color: transparent; color: #2989c5; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;https://developers.arcgis.com/rest/users-groups-and-items/quick-reference.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can reach the delete item endpoint using this URL pattern:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;STRONG&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2F" rel="nofollow" target="_blank"&gt;https://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;Portal URL&amp;gt;/sharing/rest/content/users/&amp;lt;username&amp;gt;/items/&amp;lt;itemid&amp;gt;/delete&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;That endpoint will present you with a&amp;nbsp;UI to delete the item including a checkbox for "Force deletion".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;"&gt;The item id can be found in the URL string&lt;/SPAN&gt; within portal, or by navigating to the username REST endpoint:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3366ff; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2F" rel="nofollow" target="_blank"&gt;https://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;Portal URL&amp;gt;/sharing/rest/content/users/&amp;lt;username&amp;gt;/&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #444444; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: arial,helvetica,sans-serif; font-size: small; font-style: normal; font-weight: 400; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;Joseph Poncy&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV style="color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;SPAN style="color: #444444; font-family: arial,helvetica,sans-serif; font-size: small;"&gt;Geospatial Developer&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;SPAN style="color: #444444; font-family: arial,helvetica,sans-serif; font-size: small;"&gt;Innovate! Inc.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;SPAN style="color: #444444; font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #222222; font-family: Arial, Helvetica, sans-serif; font-size: small; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;SPAN style="color: #6aa84f; font-family: arial,helvetica,sans-serif; font-size: small;"&gt;&lt;EM&gt;Innovate!, Inc. is a Virginia-based 8(a), Hispanic- and woman-owned business delivering Geospatial, Information Technology, Security, Business Consulting, Project Management and Executive Coaching solutions to our government and private sector clients.&amp;nbsp; Check us out at&amp;nbsp;&lt;A href="http://www.innovateteam.com/" style="color: #1155cc;" target="_blank"&gt;www.innovateteam.com&lt;/A&gt;.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2018 03:15:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/deleteitem-with-options-force-true/m-p/105304#M4071</guid>
      <dc:creator>JosephPoncy</dc:creator>
      <dc:date>2018-11-07T03:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: deleteItem with options = { 'force' : true }</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/deleteitem-with-options-force-true/m-p/105305#M4072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Nov 2018 21:09:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/deleteitem-with-options-force-true/m-p/105305#M4072</guid>
      <dc:creator>JeffTimm</dc:creator>
      <dc:date>2018-11-09T21:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: deleteItem with options = { 'force' : true }</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/deleteitem-with-options-force-true/m-p/105306#M4073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/50607"&gt;Joseph Poncy&lt;/A&gt;‌ and &lt;A href="https://community.esri.com/migrated-users/6905"&gt;Jeff Timm&lt;/A&gt;‌, apart from this solution, is there a way to delete items from Portal for Arcgis without having to go to Sharing? Any recommendation, idea or suggestion to find the error and to provide a more direct solution? I have the same error. Thanks for all!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Mar 2019 19:17:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/deleteitem-with-options-force-true/m-p/105306#M4073</guid>
      <dc:creator>IngJuanMaSuarez</dc:creator>
      <dc:date>2019-03-12T19:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: deleteItem with options = { 'force' : true }</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/deleteitem-with-options-force-true/m-p/105307#M4074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Juan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sorry, but I don't fully understand your question. I believe the most direct solution to this problem is through the ArcGIS REST API.&lt;BR /&gt;&lt;BR /&gt;The '&lt;EM&gt;&lt;STRONG&gt;sharing&lt;/STRONG&gt;&lt;/EM&gt;' you see in the solution above is part of the REST endpoint URL.&lt;BR /&gt;For example, this is your Portal Root:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;ArcGIS Online -&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.arcgis.com/sharing/rest"&gt;https://www.arcgis.com/sharing/rest&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Portal for ArcGIS - &lt;A class="link-titled" href="https://webadaptorhost.domain.com/webadaptorname/sharing/rest" title="https://webadaptorhost.domain.com/webadaptorname/sharing/rest"&gt;https://webadaptorhost.domain.com/webadaptorname/sharing/rest&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More information and examples can be found in the Esri documentation:&lt;BR /&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/rest/users-groups-and-items/resource-hierarchy.htm" title="https://developers.arcgis.com/rest/users-groups-and-items/resource-hierarchy.htm"&gt;Resource hierarchy—ArcGIS REST API: Users, groups, and content | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;(&lt;A class="jivelink17" href="https://developers.arcgis.com/rest/users-groups-and-items/resource-hierarchy.htm" title="https://developers.arcgis.com/rest/users-groups-and-items/resource-hierarchy.htm"&gt;https://developers.arcgis.com/rest/users-groups-and-items/resource-hierarchy.htm&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/rest/users-groups-and-items/root.htm" title="https://developers.arcgis.com/rest/users-groups-and-items/root.htm"&gt;Root—ArcGIS REST API: Users, groups, and content | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;(&lt;A class="jivelink12" href="https://developers.arcgis.com/rest/users-groups-and-items/root.htm" title="https://developers.arcgis.com/rest/users-groups-and-items/root.htm"&gt;https://developers.arcgis.com/rest/users-groups-and-items/root.htm&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/rest/users-groups-and-items/delete-item.htm" title="https://developers.arcgis.com/rest/users-groups-and-items/delete-item.htm"&gt;Delete Item—ArcGIS REST API: Users, groups, and content | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;(&lt;A class="jivelink15" href="https://developers.arcgis.com/rest/users-groups-and-items/delete-item.htm" title="https://developers.arcgis.com/rest/users-groups-and-items/delete-item.htm"&gt;https://developers.arcgis.com/rest/users-groups-and-items/delete-item.htm&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; padding: 0px;"&gt;&lt;SPAN style="color: #444444; background-color: #ffffff; border: 0px; font-size: small; padding: 0px;"&gt;Joseph Poncy&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV style="color: #222222; background-color: #ffffff; border: 0px; font-size: small; padding: 0px;"&gt;&lt;SPAN style="color: #444444; border: 0px; font-weight: inherit; font-size: small; padding: 0px;"&gt;Geospatial Developer&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; border: 0px; font-size: small; padding: 0px;"&gt;&lt;SPAN style="color: #444444; border: 0px; font-weight: inherit; font-size: small; padding: 0px;"&gt;Innovate! Inc.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; border: 0px; font-size: small; padding: 0px;"&gt;&lt;SPAN style="color: #444444; border: 0px; font-weight: inherit; font-size: small; padding: 0px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; border: 0px; font-size: small; padding: 0px;"&gt;&lt;SPAN style="color: #6aa84f; border: 0px; font-weight: inherit; font-size: small; padding: 0px;"&gt;&lt;EM style="border: 0px; font-weight: inherit; font-size: 13px; padding: 0px;"&gt;Innovate!, Inc. is a Virginia-based 8(a), Hispanic- and woman-owned business delivering Geospatial, Information Technology, Security, Business Consulting, Project Management and Executive Coaching solutions to our government and private sector clients.&amp;nbsp; Check us out at&amp;nbsp;&lt;A href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fwww.innovateteam.com%2F" rel="nofollow" style="color: #1155cc; border: 0px; font-weight: inherit; text-decoration: none; font-size: 13px; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;www.innovateteam.com&lt;/A&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Mar 2019 06:43:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/deleteitem-with-options-force-true/m-p/105307#M4074</guid>
      <dc:creator>JosephPoncy</dc:creator>
      <dc:date>2019-03-17T06:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: deleteItem with options = { 'force' : true }</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/deleteitem-with-options-force-true/m-p/105308#M4075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcgis
&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;gis &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; GIS
gis &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; GIS&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"https://portalname/arcgis"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"username"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"password"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;#get the list of orphaned items&lt;/SPAN&gt;
delete_orphaned_items &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; gis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;content&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;search&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;query&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"owner: ownername AND title:*title*"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; item_type&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'Feature *'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; max_items&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;100&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
delete_orphaned_items

&lt;SPAN class="comment token"&gt;#filter the items &lt;/SPAN&gt;
filtered_items &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;item &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; item &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; delete_orphaned_items &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'title'&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; item&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;title&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;len&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;filtered_items&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
sorted&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;filtered_items&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; key&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;lambda&lt;/SPAN&gt; x&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;x&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;title&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;#replace dry_run with force. dry_run checks if the item can be safely deleted&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; item &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; filtered_items&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
   &lt;SPAN class="keyword token"&gt;try&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
      item&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;delete&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;dry_run&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token boolean"&gt;True&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
   &lt;SPAN class="keyword token"&gt;except&lt;/SPAN&gt; TypeError&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
      &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;f&lt;SPAN class="string token"&gt;'{item.title} not deleted'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
   &lt;SPAN class="keyword token"&gt;except&lt;/SPAN&gt; RuntimeError&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
      &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;f&lt;SPAN class="string token"&gt;'{item.title} not deleted'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Delete an item in Portal for ArcGIS using&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-weight: bold;"&gt;&lt;STRONG&gt;arcgis.gis&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;module:&amp;nbsp;&lt;A href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fesri.github.io%2Farcgis-python-api%2Fapidoc%2Fhtml%2Farcgis.gis.toc.html%23item" style="color: #287433; border: 0px; font-weight: inherit; text-decoration: none; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;https://esri.github.io/arcgis-python-api/apidoc/html/arcgis.gis.toc.html#item&lt;/A&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;A _jive_internal="true" href="https://community.esri.com/people/syed_imtiaz/blog/2019/07/15/delete-orphaned-items-from-portal-for-arcgis-using-python-script" target="_blank"&gt;https://community.esri.com/people/syed_imtiaz/blog/2019/07/15/delete-orphaned-items-from-portal-for-arcgis-using-python-script&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:25:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/deleteitem-with-options-force-true/m-p/105308#M4075</guid>
      <dc:creator>ImtiazSyed</dc:creator>
      <dc:date>2021-12-11T06:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: deleteItem with options = { 'force' : true }</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/deleteitem-with-options-force-true/m-p/105309#M4076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for sharing this solution!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2019 07:02:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/deleteitem-with-options-force-true/m-p/105309#M4076</guid>
      <dc:creator>JosephPoncy</dc:creator>
      <dc:date>2019-07-16T07:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: deleteItem with options = { 'force' : true }</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/deleteitem-with-options-force-true/m-p/105310#M4077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had to replace "sharing" with "portal" and I was able to delete all my orphaned items.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2019 19:09:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/deleteitem-with-options-force-true/m-p/105310#M4077</guid>
      <dc:creator>LukeCatania</dc:creator>
      <dc:date>2019-10-21T19:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: deleteItem with options = { 'force' : true }</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/deleteitem-with-options-force-true/m-p/105311#M4078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is really helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2019 06:15:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/deleteitem-with-options-force-true/m-p/105311#M4078</guid>
      <dc:creator>chakreshsahu</dc:creator>
      <dc:date>2019-11-15T06:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: deleteItem with options = { 'force' : true }</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/deleteitem-with-options-force-true/m-p/1387816#M38773</link>
      <description>&lt;P&gt;How do I authenticate against&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;ArcGIS Online using&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.arcgis.com/sharing/rest" rel="nofollow noopener noreferrer" target="_blank"&gt;https://www.arcgis.com/sharing/rest ?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I just get the below and think it's because I'm not authenticating against AGOL despite being logged in..&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ahargreaves_FW_0-1709082585614.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/96063iD85F3E4EA0CAA2BD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ahargreaves_FW_0-1709082585614.png" alt="ahargreaves_FW_0-1709082585614.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 01:09:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/deleteitem-with-options-force-true/m-p/1387816#M38773</guid>
      <dc:creator>ahargreaves_FW</dc:creator>
      <dc:date>2024-02-28T01:09:53Z</dc:date>
    </item>
  </channel>
</rss>

