<?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 How do I delete/break relationships between entities in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-do-i-delete-break-relationships-between/m-p/863632#M4307</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created relationships between layers in a feature service in AGOL using the ArcGIS API for Python using the add_to_definition method:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;minesite_layer.manager.add_to_definition({"relationships":mining_sites_rel})&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;However, I can not see to delete the relationship.&amp;nbsp; I have tried using the update relationship and passing in an empty list, which give a {'success': True}&lt;/P&gt;&lt;P&gt;but the relationships persist.&amp;nbsp; &amp;nbsp;I have tried using delete_from_definition where I pass in the entire&amp;nbsp;relationship list of dictionaries which gave me:&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;PRE style="color: #000000; background-color: transparent; border: 0px; font-size: 14px; padding: 1px 0px;"&gt;Unable to delete feature service layer definition. 'REL_FK_MINING_AND_HAZARDS_20190225_GDB_POINT_MINING_FEATURE_0' is not a constraint. Could not drop constraint. See previous errors.&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I can't find anywhere to drop constraints by name.&amp;nbsp; Anyone else know how to do this?&amp;nbsp; Has to be a scripted solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Mar 2019 17:52:14 GMT</pubDate>
    <dc:creator>SanjayAdvani</dc:creator>
    <dc:date>2019-03-29T17:52:14Z</dc:date>
    <item>
      <title>How do I delete/break relationships between entities</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-do-i-delete-break-relationships-between/m-p/863632#M4307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created relationships between layers in a feature service in AGOL using the ArcGIS API for Python using the add_to_definition method:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;minesite_layer.manager.add_to_definition({"relationships":mining_sites_rel})&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;However, I can not see to delete the relationship.&amp;nbsp; I have tried using the update relationship and passing in an empty list, which give a {'success': True}&lt;/P&gt;&lt;P&gt;but the relationships persist.&amp;nbsp; &amp;nbsp;I have tried using delete_from_definition where I pass in the entire&amp;nbsp;relationship list of dictionaries which gave me:&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;PRE style="color: #000000; background-color: transparent; border: 0px; font-size: 14px; padding: 1px 0px;"&gt;Unable to delete feature service layer definition. 'REL_FK_MINING_AND_HAZARDS_20190225_GDB_POINT_MINING_FEATURE_0' is not a constraint. Could not drop constraint. See previous errors.&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I can't find anywhere to drop constraints by name.&amp;nbsp; Anyone else know how to do this?&amp;nbsp; Has to be a scripted solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Mar 2019 17:52:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-do-i-delete-break-relationships-between/m-p/863632#M4307</guid>
      <dc:creator>SanjayAdvani</dc:creator>
      <dc:date>2019-03-29T17:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: How do I delete/break relationships between entities</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-do-i-delete-break-relationships-between/m-p/863633#M4308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the python's requests module to send an HTTPS Post request as suggested in the documentation below:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/rest/services-reference/delete-from-definition-feature-layer-.htm#example1" title="https://developers.arcgis.com/rest/services-reference/delete-from-definition-feature-layer-.htm#example1"&gt;Delete From Definition (Feature Layer)—ArcGIS REST API: Services Directory | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Refer the: Example 1: Delete fields from the feature service layer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Gurminder&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Apr 2019 09:08:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-do-i-delete-break-relationships-between/m-p/863633#M4308</guid>
      <dc:creator>GurminderBharani1</dc:creator>
      <dc:date>2019-04-01T09:08:32Z</dc:date>
    </item>
  </channel>
</rss>

