<?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 Unregister All Replicas in ArcGIS Online Ideas</title>
    <link>https://community.esri.com/t5/arcgis-online-ideas/unregister-all-replicas/idi-p/929163</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ArcGIS Online will not allow you to overwrite an existing hosted feature service if replicas exist.&amp;nbsp; ArcGIS Online also will not allow you to programatically compile a list of all of the existing replica IDs for a hosted feature service and then use that list to unregister them all.&amp;nbsp; There needs to be a way to either programatically gather all of the replica IDs and unregister the replicas, or provide an "Unregister All" button on the feature service page so that users do not have to spend hours copying and pasting each individual replica ID into the one-at-a-time "Unregister Replica" tool.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Jul 2020 19:13:12 GMT</pubDate>
    <dc:creator>GJW</dc:creator>
    <dc:date>2020-07-11T19:13:12Z</dc:date>
    <item>
      <title>Unregister All Replicas</title>
      <link>https://community.esri.com/t5/arcgis-online-ideas/unregister-all-replicas/idi-p/929163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ArcGIS Online will not allow you to overwrite an existing hosted feature service if replicas exist.&amp;nbsp; ArcGIS Online also will not allow you to programatically compile a list of all of the existing replica IDs for a hosted feature service and then use that list to unregister them all.&amp;nbsp; There needs to be a way to either programatically gather all of the replica IDs and unregister the replicas, or provide an "Unregister All" button on the feature service page so that users do not have to spend hours copying and pasting each individual replica ID into the one-at-a-time "Unregister Replica" tool.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Jul 2020 19:13:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-ideas/unregister-all-replicas/idi-p/929163</guid>
      <dc:creator>GJW</dc:creator>
      <dc:date>2020-07-11T19:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: Unregister All Replicas</title>
      <link>https://community.esri.com/t5/arcgis-online-ideas/unregister-all-replicas/idc-p/929164#M1124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There's a function in the ArcGIS API for Python to list all the replicas and unregister them. Just be aware that doing this will break any outstanding offline maps. After removing the replicas, when a user clicks 'Check for update', for their offline map in ArcGIS Explorer/Collector, they will get a sync failed error as the replica can no longer be found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;featureLayerName = "layername"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;featureLayer = gis.content.search(query=featureLayerName + " owner:named_user", item_type='Feature Layer Collection', sort_field='relevance', sort_order='desc', max_items=1)&lt;BR /&gt;print(featureLayer)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;featureDataset = FeatureLayerCollection.fromitem(featureLayer[0])&lt;BR /&gt;print(featureDataset.url)&lt;BR /&gt;outstandingReplicas = featureDataset.replicas.get_list()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if outstandingReplicas:&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;for replica_dict in outstandingReplicas:&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;featureDataset.replicas.unregister(replica_dict['replicaID'])&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;print("Unregistered replica: {0}".format(replica_dict['replicaID']))&lt;BR /&gt;else:&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;print("No replicas present")&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2020 04:54:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-ideas/unregister-all-replicas/idc-p/929164#M1124</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-09-04T04:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: Unregister All Replicas</title>
      <link>https://community.esri.com/t5/arcgis-online-ideas/unregister-all-replicas/idc-p/1215876#M9364</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous User,&amp;nbsp;&lt;/P&gt;&lt;P&gt;It looks like your solution above is what I am looking for. I have gone through the first four lines OK, but I am getting stuck and was hoping for some assistance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get stuck here at this point. I do have USERNAME updated in the actual script&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;featureLayer = gis.content.search(query= featureLayerName + "owner:USERNAME", item_type='Feature Server', sort_field='relevance', sort_order='desc', max_items=1)&lt;BR /&gt;print(featureLayer)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;When stepping through, when I hit the print, I return&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;[]&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Which may be the issue, because then when I continue&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;featureDataset = FeatureLayerCollection.fromitem(featureLayer[0])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;I receive the error&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;Traceback (most recent call last):&lt;BR /&gt;File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;BR /&gt;IndexError: list index out of range&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;I've been trying to troubleshoot for a good bit and though I might reach back out to the master for some potential guidance.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Mary&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Sep 2022 22:42:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-ideas/unregister-all-replicas/idc-p/1215876#M9364</guid>
      <dc:creator>mejohnson22</dc:creator>
      <dc:date>2022-09-25T22:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: Unregister All Replicas</title>
      <link>https://community.esri.com/t5/arcgis-online-ideas/unregister-all-replicas/idc-p/1216271#M9367</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/618379"&gt;@mejohnson22&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I haven't been able to check but suspect the problem is with the item type specified as it doesn't look to be valid -&amp;nbsp;&lt;A href="https://developers.arcgis.com/rest/users-groups-and-items/items-and-item-types.htm" target="_blank"&gt;Items and item types—ArcGIS REST APIs | ArcGIS Developers&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;item_type='Feature Server'&lt;/LI-CODE&gt;&lt;P&gt;I think it's not returning any results from the search, thus it's returning [] &amp;amp; 'list index out of range'.&lt;/P&gt;&lt;P data-unlink="true"&gt;As an aside - and it doesn't always work - you can enter * into the unRegisterReplica option for a feature service e.g. https://services3.arcgis.com/AkUq3zcWf7TVqyR9/ArcGIS/rest/services/SERVICE_NAME/FeatureServer/unRegisterReplica and that will try and remove all replicas.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 19:50:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-ideas/unregister-all-replicas/idc-p/1216271#M9367</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-09-26T19:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: Unregister All Replicas</title>
      <link>https://community.esri.com/t5/arcgis-online-ideas/unregister-all-replicas/idc-p/1261158#M9811</link>
      <description>&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;As an aside - and it doesn't always work - you can enter * into the unRegisterReplica option for a feature service e.g. &lt;A href="https://services3.arcgis.com/AkUq3zcWf7TVqyR9/ArcGIS/rest/services/SERVICE_NAME/FeatureServer/unRegisterReplica" target="_blank"&gt;https://services3.arcgis.com/AkUq3zcWf7TVqyR9/ArcGIS/rest/services/SERVICE_NAME/FeatureServer/unRegisterReplica&lt;/A&gt; and that will try and remove all replicas.&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;This worked for me. Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 22:36:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-ideas/unregister-all-replicas/idc-p/1261158#M9811</guid>
      <dc:creator>TylerMcGarrity</dc:creator>
      <dc:date>2023-02-23T22:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: Unregister All Replicas</title>
      <link>https://community.esri.com/t5/arcgis-online-ideas/unregister-all-replicas/idc-p/1401560#M11116</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/618379"&gt;@mejohnson22&lt;/a&gt;&amp;nbsp; &amp;amp;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/351897"&gt;@TylerMcGarrity&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Can you post the specific code for the 2nd option you mentioned to unRegisterReplica?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2024 17:05:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-ideas/unregister-all-replicas/idc-p/1401560#M11116</guid>
      <dc:creator>LukeGilner1</dc:creator>
      <dc:date>2024-03-27T17:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: Unregister All Replicas</title>
      <link>https://community.esri.com/t5/arcgis-online-ideas/unregister-all-replicas/idc-p/1401574#M11117</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/57564"&gt;@LukeGilner1&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;No specific code, you just enter an asterisk and click on Unregister Replica:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="2024-03-27_10-15-24.jpg" style="width: 821px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/99243iEE78B9AA71303660/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024-03-27_10-15-24.jpg" alt="2024-03-27_10-15-24.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2024 17:19:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-ideas/unregister-all-replicas/idc-p/1401574#M11117</guid>
      <dc:creator>TylerMcGarrity</dc:creator>
      <dc:date>2024-03-27T17:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Unregister All Replicas</title>
      <link>https://community.esri.com/t5/arcgis-online-ideas/unregister-all-replicas/idc-p/1401577#M11118</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/351897"&gt;@TylerMcGarrity&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Awesome!&amp;nbsp; Thanks for the picture.&amp;nbsp; Worked for me!&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2024 17:23:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-ideas/unregister-all-replicas/idc-p/1401577#M11118</guid>
      <dc:creator>LukeGilner1</dc:creator>
      <dc:date>2024-03-27T17:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: Unregister All Replicas</title>
      <link>https://community.esri.com/t5/arcgis-online-ideas/unregister-all-replicas/idc-p/1478124#M11290</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/57564"&gt;@LukeGilner1&lt;/a&gt;&amp;nbsp;works great! Thank you!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2024 22:55:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-ideas/unregister-all-replicas/idc-p/1478124#M11290</guid>
      <dc:creator>mejohnson22</dc:creator>
      <dc:date>2024-05-23T22:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: Unregister All Replicas</title>
      <link>https://community.esri.com/t5/arcgis-online-ideas/unregister-all-replicas/idc-p/1614994#M12506</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/351897"&gt;@TylerMcGarrity&lt;/a&gt;&amp;nbsp; Thanks for you tip on unregistering all replicas. It worked for me too.&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 14:24:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-ideas/unregister-all-replicas/idc-p/1614994#M12506</guid>
      <dc:creator>ShoNuff</dc:creator>
      <dc:date>2025-05-15T14:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: Unregister All Replicas</title>
      <link>https://community.esri.com/t5/arcgis-online-ideas/unregister-all-replicas/idc-p/1638584#M12849</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/351897"&gt;@TylerMcGarrity&lt;/a&gt;&amp;nbsp;, perfect just what I was looking for, thank you.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Aug 2025 05:04:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-ideas/unregister-all-replicas/idc-p/1638584#M12849</guid>
      <dc:creator>AndrewHankinson</dc:creator>
      <dc:date>2025-08-02T05:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: Unregister All Replicas</title>
      <link>https://community.esri.com/t5/arcgis-online-ideas/unregister-all-replicas/idc-p/1651327#M13348</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/351897"&gt;@TylerMcGarrity&lt;/a&gt;&amp;nbsp;that was amazing, thank you so much!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Sep 2025 03:53:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-ideas/unregister-all-replicas/idc-p/1651327#M13348</guid>
      <dc:creator>LayerItOn</dc:creator>
      <dc:date>2025-09-18T03:53:15Z</dc:date>
    </item>
  </channel>
</rss>

