<?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 Deleting features with an empty output using iterate feature classes in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/deleting-features-with-an-empty-output-using/m-p/1548653#M89161</link>
    <description>&lt;P&gt;I wonder if someone can help me. I want to create a model that will iterate datasets within a FGDB and delete all where there is an empty output, or whether someone could help with an initial batch clip iteration where any empty outputs generated are deleted. I have tried many ways in model builder but can't get it to work.&lt;/P&gt;&lt;P&gt;The model below is what I have for the former&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PeterDouglassEPD_0-1729001114927.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/117221i48D5A2B6D6E29D2C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PeterDouglassEPD_0-1729001114927.png" alt="PeterDouglassEPD_0-1729001114927.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Oct 2024 14:05:51 GMT</pubDate>
    <dc:creator>JustPete</dc:creator>
    <dc:date>2024-10-15T14:05:51Z</dc:date>
    <item>
      <title>Deleting features with an empty output using iterate feature classes</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/deleting-features-with-an-empty-output-using/m-p/1548653#M89161</link>
      <description>&lt;P&gt;I wonder if someone can help me. I want to create a model that will iterate datasets within a FGDB and delete all where there is an empty output, or whether someone could help with an initial batch clip iteration where any empty outputs generated are deleted. I have tried many ways in model builder but can't get it to work.&lt;/P&gt;&lt;P&gt;The model below is what I have for the former&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PeterDouglassEPD_0-1729001114927.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/117221i48D5A2B6D6E29D2C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PeterDouglassEPD_0-1729001114927.png" alt="PeterDouglassEPD_0-1729001114927.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 14:05:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/deleting-features-with-an-empty-output-using/m-p/1548653#M89161</guid>
      <dc:creator>JustPete</dc:creator>
      <dc:date>2024-10-15T14:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting features with an empty output using iterate feature classes</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/deleting-features-with-an-empty-output-using/m-p/1548722#M89165</link>
      <description>&lt;P&gt;this might help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcpy

workspace = "path/to/your/geodatabase.gdb"
arcpy.env.workspace = workspace

for fc in arcpy.ListFeatureClasses():
    count = int(arcpy.GetCount_management(fc)[0])
    if count == 0:
        arcpy.Delete_management(fc)
        print(f"Deleted empty feature class: {fc}")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 16:10:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/deleting-features-with-an-empty-output-using/m-p/1548722#M89165</guid>
      <dc:creator>Ed_</dc:creator>
      <dc:date>2024-10-15T16:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting features with an empty output using iterate feature classes</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/deleting-features-with-an-empty-output-using/m-p/1548951#M89187</link>
      <description>&lt;P&gt;Amazing, thank you so much Ed!&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2024 11:59:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/deleting-features-with-an-empty-output-using/m-p/1548951#M89187</guid>
      <dc:creator>JustPete</dc:creator>
      <dc:date>2024-10-16T11:59:45Z</dc:date>
    </item>
  </channel>
</rss>

