<?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 deleteFeatures behavior? in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/deletefeatures-behavior/m-p/491018#M2351</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Reference: Delete Features API: &lt;A class="link-titled" href="https://developers.arcgis.com/rest/services-reference/delete-features.htm" title="https://developers.arcgis.com/rest/services-reference/delete-features.htm"&gt;Delete Features—ArcGIS REST API: Services Directory | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scenario A: object ID 1 exists in my layer.&amp;nbsp; If I send a deleteFeatures request through the REST API using the objectIds parameter, and I get the expected response with the "deleteResults" array in the returned JSON object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scenario B: object ID 2 doesn't exist in my layer; I already deleted it, but something happened and my application failed to mark it as deleted in it's local state.&amp;nbsp; So, later on, I try to delete it again.&amp;nbsp; If I send the same request as scenario A, the response I receive is simply an empty JSON object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From these I have a few questions:&lt;/P&gt;&lt;P&gt;1 - Is this expected behavior?&amp;nbsp; I question it because as far as I can tell, it's not documented.&lt;/P&gt;&lt;P&gt;2 - If an object ID I provided to the deleteFeatures API is not included in the response, can I safely assume that that object ID does not exist in the layer?&amp;nbsp; Or would I need to make a query to double check?&lt;/P&gt;&lt;P&gt;3 - Are there any other similar quirks with the add/update/deleteFeatures API that may not be documented or may be easy to overlook?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Feb 2019 04:20:39 GMT</pubDate>
    <dc:creator>AdamEggum</dc:creator>
    <dc:date>2019-02-21T04:20:39Z</dc:date>
    <item>
      <title>deleteFeatures behavior?</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/deletefeatures-behavior/m-p/491018#M2351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Reference: Delete Features API: &lt;A class="link-titled" href="https://developers.arcgis.com/rest/services-reference/delete-features.htm" title="https://developers.arcgis.com/rest/services-reference/delete-features.htm"&gt;Delete Features—ArcGIS REST API: Services Directory | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scenario A: object ID 1 exists in my layer.&amp;nbsp; If I send a deleteFeatures request through the REST API using the objectIds parameter, and I get the expected response with the "deleteResults" array in the returned JSON object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scenario B: object ID 2 doesn't exist in my layer; I already deleted it, but something happened and my application failed to mark it as deleted in it's local state.&amp;nbsp; So, later on, I try to delete it again.&amp;nbsp; If I send the same request as scenario A, the response I receive is simply an empty JSON object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From these I have a few questions:&lt;/P&gt;&lt;P&gt;1 - Is this expected behavior?&amp;nbsp; I question it because as far as I can tell, it's not documented.&lt;/P&gt;&lt;P&gt;2 - If an object ID I provided to the deleteFeatures API is not included in the response, can I safely assume that that object ID does not exist in the layer?&amp;nbsp; Or would I need to make a query to double check?&lt;/P&gt;&lt;P&gt;3 - Are there any other similar quirks with the add/update/deleteFeatures API that may not be documented or may be easy to overlook?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2019 04:20:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/deletefeatures-behavior/m-p/491018#M2351</guid>
      <dc:creator>AdamEggum</dc:creator>
      <dc:date>2019-02-21T04:20:39Z</dc:date>
    </item>
  </channel>
</rss>

