<?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 Make a delete features end-point in ArcGIS Pro in ArcGIS Pro SDK Ideas</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-ideas/make-a-delete-features-end-point-in-arcgis-pro/idi-p/1325309</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Deleting features in a service through the .NET SDK in ArcGIs pro (2.9.5) is very slow:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Consider for example this code: if the where clause results in 100 records the code results in 100 http calls to the service. It is not efficient.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;var query = new QueryForIds(endpoint) { Where = GetEqualsClause(fieldName, $"'{fieldValue}'") };&lt;BR /&gt;var deleteIds = (await QueryForIds(query)).ObjectIds?.ToList() ?? new List&amp;lt;long&amp;gt;();&lt;BR /&gt;var response = await DeleteFeatures(new DeleteFeatures(endpoint)&lt;BR /&gt;{&lt;BR /&gt;ObjectIds = deleteIds,&lt;BR /&gt;Where = GetEqualsClause(fieldName, $"'{fieldValue}'")&lt;BR /&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;&lt;SPAN&gt;If you delete the same number of features with a rest http call, it can be done in 1 query and is 10 of times faster.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It would be great if there was&amp;nbsp;"a delete features end-point in ArcGIS Pro .NET SDK" that can delete multiple records at the same time&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Sep 2023 07:30:33 GMT</pubDate>
    <dc:creator>WillemJ</dc:creator>
    <dc:date>2023-09-05T07:30:33Z</dc:date>
    <item>
      <title>Make a delete features end-point in ArcGIS Pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-ideas/make-a-delete-features-end-point-in-arcgis-pro/idi-p/1325309</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Deleting features in a service through the .NET SDK in ArcGIs pro (2.9.5) is very slow:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Consider for example this code: if the where clause results in 100 records the code results in 100 http calls to the service. It is not efficient.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;var query = new QueryForIds(endpoint) { Where = GetEqualsClause(fieldName, $"'{fieldValue}'") };&lt;BR /&gt;var deleteIds = (await QueryForIds(query)).ObjectIds?.ToList() ?? new List&amp;lt;long&amp;gt;();&lt;BR /&gt;var response = await DeleteFeatures(new DeleteFeatures(endpoint)&lt;BR /&gt;{&lt;BR /&gt;ObjectIds = deleteIds,&lt;BR /&gt;Where = GetEqualsClause(fieldName, $"'{fieldValue}'")&lt;BR /&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;&lt;SPAN&gt;If you delete the same number of features with a rest http call, it can be done in 1 query and is 10 of times faster.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It would be great if there was&amp;nbsp;"a delete features end-point in ArcGIS Pro .NET SDK" that can delete multiple records at the same time&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 07:30:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-ideas/make-a-delete-features-end-point-in-arcgis-pro/idi-p/1325309</guid>
      <dc:creator>WillemJ</dc:creator>
      <dc:date>2023-09-05T07:30:33Z</dc:date>
    </item>
  </channel>
</rss>

