<?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 Tool to Delete Geodatabase content (feature classes, tables, etc)? in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/tool-to-delete-geodatabase-content-feature-classes/m-p/832223#M4289</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Situation:&lt;/P&gt;&lt;P&gt;Need to add a &lt;STRONG&gt;Tool&lt;/STRONG&gt; to my ModelBuider to &lt;STRONG&gt;Delete&lt;/STRONG&gt; only the content from an Enterprise (SDE) Geodatabase (containing features classes, tables, relationship classes).&lt;/P&gt;&lt;P&gt;Tool "Delete" (from Toolbox "Data Management") deletes the Geodatabase and only want to delete its content.&lt;/P&gt;&lt;P&gt;Any help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Aug 2015 14:42:50 GMT</pubDate>
    <dc:creator>EduardoAbreu-Freire</dc:creator>
    <dc:date>2015-08-28T14:42:50Z</dc:date>
    <item>
      <title>Tool to Delete Geodatabase content (feature classes, tables, etc)?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/tool-to-delete-geodatabase-content-feature-classes/m-p/832223#M4289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Situation:&lt;/P&gt;&lt;P&gt;Need to add a &lt;STRONG&gt;Tool&lt;/STRONG&gt; to my ModelBuider to &lt;STRONG&gt;Delete&lt;/STRONG&gt; only the content from an Enterprise (SDE) Geodatabase (containing features classes, tables, relationship classes).&lt;/P&gt;&lt;P&gt;Tool "Delete" (from Toolbox "Data Management") deletes the Geodatabase and only want to delete its content.&lt;/P&gt;&lt;P&gt;Any help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2015 14:42:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/tool-to-delete-geodatabase-content-feature-classes/m-p/832223#M4289</guid>
      <dc:creator>EduardoAbreu-Freire</dc:creator>
      <dc:date>2015-08-28T14:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: Tool to Delete Geodatabase content (feature classes, tables, etc)?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/tool-to-delete-geodatabase-content-feature-classes/m-p/832224#M4290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The easiest option would be to build a script tool to use the arcpy.da.walk method to walk through your geodatabase and delete each item found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;arcpy.da.walk&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="http://desktop.arcgis.com/en/desktop/latest/analyze/arcpy-data-access/walk.htm"&gt;http://desktop.arcgis.com/en/desktop/latest/analyze/arcpy-data-access/walk.htm&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you wanted to accomplish this in ModelBuilder you could build a series of submodels with the different iterators that could delete different types of data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A quick tour of using iterators&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="http://desktop.arcgis.com/en/desktop/latest/analyze/modelbuilder/a-quick-tour-of-using-iterators-for-iteration-looping-.htm"&gt;http://desktop.arcgis.com/en/desktop/latest/analyze/modelbuilder/a-quick-tour-of-using-iterators-for-iteration-looping-.htm&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The catch with using the iterators within ModelBuilder with be that 1) not all types are available within the given set of iterators and 2) without using a script tool for the deletion logic it'd be hard to catch errors that would stop the model (i.e. deleting features that you don't have permissions to, items that can't be deleted because they participate in a relationship, etc.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2015 16:56:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/tool-to-delete-geodatabase-content-feature-classes/m-p/832224#M4290</guid>
      <dc:creator>FreddieGibson</dc:creator>
      <dc:date>2015-08-28T16:56:15Z</dc:date>
    </item>
  </channel>
</rss>

