<?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: Remove all attribute indexes using arcpy in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/remove-all-attribute-indexes-using-arcpy/m-p/224666#M17345</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Create a list of indexes for a table using Describe and then delete them using the geoprocessing tool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Since you can supply a list, then that is done in one step. Ignore the first index on the objectid.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;arcpy.env.workspace = "e:/crs/mobile/mobile.gdb"
dsc = arcpy.Describe("sap")
lstIndex = [i.name for i in dsc.Indexes][1:]
print lstIndex
arcpy.management.RemoveIndex("sap",lstIndex)
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 10:56:29 GMT</pubDate>
    <dc:creator>KimOllivier</dc:creator>
    <dc:date>2021-12-11T10:56:29Z</dc:date>
    <item>
      <title>Remove all attribute indexes using arcpy</title>
      <link>https://community.esri.com/t5/python-questions/remove-all-attribute-indexes-using-arcpy/m-p/224665#M17344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there a way to remove all attribute indexes on a particular feature class using python- without naming each one specifically?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a script that I can run, but it names each index separately.&amp;nbsp; I would like to remove all indexes with one command if possible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Eric V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2012 11:43:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/remove-all-attribute-indexes-using-arcpy/m-p/224665#M17344</guid>
      <dc:creator>EricVenden</dc:creator>
      <dc:date>2012-07-02T11:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: Remove all attribute indexes using arcpy</title>
      <link>https://community.esri.com/t5/python-questions/remove-all-attribute-indexes-using-arcpy/m-p/224666#M17345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Create a list of indexes for a table using Describe and then delete them using the geoprocessing tool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Since you can supply a list, then that is done in one step. Ignore the first index on the objectid.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;arcpy.env.workspace = "e:/crs/mobile/mobile.gdb"
dsc = arcpy.Describe("sap")
lstIndex = [i.name for i in dsc.Indexes][1:]
print lstIndex
arcpy.management.RemoveIndex("sap",lstIndex)
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:56:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/remove-all-attribute-indexes-using-arcpy/m-p/224666#M17345</guid>
      <dc:creator>KimOllivier</dc:creator>
      <dc:date>2021-12-11T10:56:29Z</dc:date>
    </item>
  </channel>
</rss>

