<?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 Delete AGOL hosted features when &amp;quot;update attributes only&amp;quot; set? in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/delete-agol-hosted-features-when-quot-update/m-p/439983#M22225</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an ArcGIS Online hosted feature layer that has the Editing setting of "Update Attributes only" because that's what I want users to be able to do in the Collector map they are editing.&amp;nbsp; The feature layer is sync-enabled and they are working offline. I have probably 20 field users working with offline caches.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I discovered that I have some duplicate data in the hosted feature layer - about 5,000 points that I want to delete.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the best way to do this?&amp;nbsp; I know I can open the hosted feature layer in a web map with IsAdmin=true, but then it seems I can only click on one at a time and choose delete.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to interact with the feature service as "admin" in Pro where I can select features and delete more than one at a time?&amp;nbsp; What about Python?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other thing I was wondering is if I could temporarily change the Edit settings of the hosted feature layer to "Add, update, and delete features" &lt;EM&gt;without&lt;/EM&gt; affecting the offline caches my field workers have locally on their devices.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Jake&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Apr 2019 22:16:07 GMT</pubDate>
    <dc:creator>JakeJacobs</dc:creator>
    <dc:date>2019-04-15T22:16:07Z</dc:date>
    <item>
      <title>Delete AGOL hosted features when "update attributes only" set?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/delete-agol-hosted-features-when-quot-update/m-p/439983#M22225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an ArcGIS Online hosted feature layer that has the Editing setting of "Update Attributes only" because that's what I want users to be able to do in the Collector map they are editing.&amp;nbsp; The feature layer is sync-enabled and they are working offline. I have probably 20 field users working with offline caches.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I discovered that I have some duplicate data in the hosted feature layer - about 5,000 points that I want to delete.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the best way to do this?&amp;nbsp; I know I can open the hosted feature layer in a web map with IsAdmin=true, but then it seems I can only click on one at a time and choose delete.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to interact with the feature service as "admin" in Pro where I can select features and delete more than one at a time?&amp;nbsp; What about Python?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other thing I was wondering is if I could temporarily change the Edit settings of the hosted feature layer to "Add, update, and delete features" &lt;EM&gt;without&lt;/EM&gt; affecting the offline caches my field workers have locally on their devices.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Jake&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2019 22:16:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/delete-agol-hosted-features-when-quot-update/m-p/439983#M22225</guid>
      <dc:creator>JakeJacobs</dc:creator>
      <dc:date>2019-04-15T22:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: Delete AGOL hosted features when "update attributes only" set?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/delete-agol-hosted-features-when-quot-update/m-p/439984#M22226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes you can use Pro and multi select the features and delete them.&lt;/P&gt;&lt;P&gt;The main entry point to delete features is the REST API deleteFeatures. You can navigate to the service directory and apply your edits in the REST endpoints directly also (preferred).&lt;/P&gt;&lt;P&gt;&lt;A href="http://warlocksds1.cloudapp.net/KhaledNG2/ArcGIS/rest/services/Alabama/FeatureServer/0/deleteFeatures"&gt;http://serviceUrl/rest/services/&amp;lt;serviceName&amp;gt;/FeatureServer/0/deleteFeatures&lt;/A&gt;?token=aaaaa&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can delete by the list of ids such as [2,4,5, ...]. You can also specify a where clause to delete such as ObjectId &amp;gt; 2000. You might need to be chunk your deleted to avoid timeouts. Like deleting 200 features at a time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;gt;The other thing I was wondering is if I could temporarily change the Edit settings of the hosted feature layer to "Add, &amp;gt;update, and delete features"&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;EM style="background-color: #ffffff; border: 0px;"&gt;without&lt;/EM&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;affecting the offline caches my field workers have locally on their devices.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Yes you can. This should not affect the offline map you have with the workers. Adding more capabilities are OK. Removing capability is the one that might affect your workers.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Khaled Hassen&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Online Hosted Feature Service Dev Lead&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2019 14:43:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/delete-agol-hosted-features-when-quot-update/m-p/439984#M22226</guid>
      <dc:creator>KhaledHassen</dc:creator>
      <dc:date>2019-04-16T14:43:09Z</dc:date>
    </item>
  </channel>
</rss>

