<?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 Re: How to clear a subtype field using python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-to-clear-a-subtype-field-using-python/m-p/1606821#M74051</link>
    <description>&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/remove-domain-from-field.htm" target="_blank" rel="noopener"&gt;https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/remove-domain-from-field.htm&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;arcpy.management.RemoveDomainFromField(in_table, field_name, {subtype_code})&lt;/PRE&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Name&lt;/TD&gt;&lt;TD&gt;Explanation&lt;/TD&gt;&lt;TD&gt;Data Type&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV class=""&gt;in_table&lt;/DIV&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;The input table containing the attribute domain that will be removed.&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;Table View&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV class=""&gt;field_name&lt;/DIV&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;The field that will no longer be associated with an attribute domain.&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;Field&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;subtype_code&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;[subtype_code,...]&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;(Optional)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;The subtype code(s) that will no longer be associated with an attribute domain.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;String&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;arcpy.management.RemoveDomainFromField(
    in_table=r"xyz.gdb\UtilityNetwork\ElectricDevice",
    field_name="ASSETTYPE",
    subtype_code="'50: Armatuur'"
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Apr 2025 10:08:19 GMT</pubDate>
    <dc:creator>JackvanderHorst</dc:creator>
    <dc:date>2025-04-17T10:08:19Z</dc:date>
    <item>
      <title>How to clear a subtype field using python</title>
      <link>https://community.esri.com/t5/python-questions/how-to-clear-a-subtype-field-using-python/m-p/1281600#M67488</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;Is there a function like&amp;nbsp;RemoveDomainFromField but for subtypes ? Or a function that allows us to clear the field of a subtype ?&amp;nbsp;&lt;BR /&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Sat, 22 Apr 2023 02:48:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-clear-a-subtype-field-using-python/m-p/1281600#M67488</guid>
      <dc:creator>SAMIRMOURAD</dc:creator>
      <dc:date>2023-04-22T02:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to clear a subtype field using python</title>
      <link>https://community.esri.com/t5/python-questions/how-to-clear-a-subtype-field-using-python/m-p/1281611#M67489</link>
      <description>&lt;P&gt;Do you mean?&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/remove-subtype.htm" target="_blank"&gt;Remove Subtype (Data Management)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;or are you looking for the new SUBTYPE@ functionality in cursors?&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/data-access/updatecursor-class.htm" target="_blank"&gt;UpdateCursor—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 22 Apr 2023 09:17:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-clear-a-subtype-field-using-python/m-p/1281611#M67489</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2023-04-22T09:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to clear a subtype field using python</title>
      <link>https://community.esri.com/t5/python-questions/how-to-clear-a-subtype-field-using-python/m-p/1281618#M67490</link>
      <description>&lt;P&gt;Let's say that in the exemple below, In Utility Access Type, I would like to remove the link to Domain.&lt;BR /&gt;I want to empty the the default value and the domain for AcessType in Utility. I know that I can do it directly on this table, but is there a way of doing it using a pyhton script ?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GUID-8BBDD82A-B8FD-4698-99E2-2498500A408E-web" style="width: 650px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/68827i08398173ACEAB747/image-size/large?v=v2&amp;amp;px=999" role="button" title="GUID-8BBDD82A-B8FD-4698-99E2-2498500A408E-web" alt="GUID-8BBDD82A-B8FD-4698-99E2-2498500A408E-web" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 22 Apr 2023 15:00:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-clear-a-subtype-field-using-python/m-p/1281618#M67490</guid>
      <dc:creator>SAMIRMOURAD</dc:creator>
      <dc:date>2023-04-22T15:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to clear a subtype field using python</title>
      <link>https://community.esri.com/t5/python-questions/how-to-clear-a-subtype-field-using-python/m-p/1288888#M67634</link>
      <description>&lt;P&gt;any suggestions ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 13 May 2023 19:19:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-clear-a-subtype-field-using-python/m-p/1288888#M67634</guid>
      <dc:creator>SAMIRMOURAD</dc:creator>
      <dc:date>2023-05-13T19:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to clear a subtype field using python</title>
      <link>https://community.esri.com/t5/python-questions/how-to-clear-a-subtype-field-using-python/m-p/1606821#M74051</link>
      <description>&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/remove-domain-from-field.htm" target="_blank" rel="noopener"&gt;https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/remove-domain-from-field.htm&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;arcpy.management.RemoveDomainFromField(in_table, field_name, {subtype_code})&lt;/PRE&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Name&lt;/TD&gt;&lt;TD&gt;Explanation&lt;/TD&gt;&lt;TD&gt;Data Type&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV class=""&gt;in_table&lt;/DIV&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;The input table containing the attribute domain that will be removed.&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;Table View&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV class=""&gt;field_name&lt;/DIV&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;The field that will no longer be associated with an attribute domain.&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;Field&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;subtype_code&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;[subtype_code,...]&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;(Optional)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;The subtype code(s) that will no longer be associated with an attribute domain.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;String&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;arcpy.management.RemoveDomainFromField(
    in_table=r"xyz.gdb\UtilityNetwork\ElectricDevice",
    field_name="ASSETTYPE",
    subtype_code="'50: Armatuur'"
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Apr 2025 10:08:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-clear-a-subtype-field-using-python/m-p/1606821#M74051</guid>
      <dc:creator>JackvanderHorst</dc:creator>
      <dc:date>2025-04-17T10:08:19Z</dc:date>
    </item>
  </channel>
</rss>

