<?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 Delete all Features and Tables within a FGDB? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/delete-all-features-and-tables-within-a-fgdb/m-p/112706#M8798</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What's the simplest way to delete all of the contents&amp;nbsp;in a FGDB using arcpy?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Mar 2019 18:37:26 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2019-03-07T18:37:26Z</dc:date>
    <item>
      <title>Delete all Features and Tables within a FGDB?</title>
      <link>https://community.esri.com/t5/python-questions/delete-all-features-and-tables-within-a-fgdb/m-p/112706#M8798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What's the simplest way to delete all of the contents&amp;nbsp;in a FGDB using arcpy?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2019 18:37:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/delete-all-features-and-tables-within-a-fgdb/m-p/112706#M8798</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-03-07T18:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: Delete all Features and Tables within a FGDB?</title>
      <link>https://community.esri.com/t5/python-questions/delete-all-features-and-tables-within-a-fgdb/m-p/112707#M8799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If there will be nothing left, just delete the gdb. then recreate it with the same name.&lt;/P&gt;&lt;P&gt;Or is there something else that needs to be maintained?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2019 18:40:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/delete-all-features-and-tables-within-a-fgdb/m-p/112707#M8799</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2019-03-07T18:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Delete all Features and Tables within a FGDB?</title>
      <link>https://community.esri.com/t5/python-questions/delete-all-features-and-tables-within-a-fgdb/m-p/112708#M8800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was able to get the following code to work.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy  
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;env&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;workspace &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;"XXXXXXXXXXXXXXXXXXX"&lt;/SPAN&gt;  
&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; objFeatureClass &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ListFeatureClasses&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;  
    arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Delete_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;objFeatureClass&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; objTables &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ListTables&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;  
    arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Delete_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;objTables&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Process Complete"&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:44:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/delete-all-features-and-tables-within-a-fgdb/m-p/112708#M8800</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-11T06:44:10Z</dc:date>
    </item>
  </channel>
</rss>

