<?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: Delete feature class from ArcGIS Pro project in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/delete-feature-class-from-arcgis-pro-project/m-p/386440#M30486</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How are you coming to the conclusion that the FC is still there?&amp;nbsp; If it is the Catalog pane in Pro, you need to hit F5 to refresh the contents of the FGDB.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Jan 2020 16:21:39 GMT</pubDate>
    <dc:creator>JoshuaBixby</dc:creator>
    <dc:date>2020-01-21T16:21:39Z</dc:date>
    <item>
      <title>Delete feature class from ArcGIS Pro project</title>
      <link>https://community.esri.com/t5/python-questions/delete-feature-class-from-arcgis-pro-project/m-p/386435#M30481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a very simple need: I want to delete a feature class from an ArcGIS Pro project permanently.&lt;/P&gt;&lt;P&gt;arcpy.Delete_management only seems to delete the layer from the map, but not the feature class.&amp;nbsp;How can I delete the feature class permanently? (Apart from arcpy I could also use the ArcGIS Pro SDK, just in case somebody knows a way to do it there)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2020 08:32:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/delete-feature-class-from-arcgis-pro-project/m-p/386435#M30481</guid>
      <dc:creator>RehmSoftware</dc:creator>
      <dc:date>2020-01-21T08:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: Delete feature class from ArcGIS Pro project</title>
      <link>https://community.esri.com/t5/python-questions/delete-feature-class-from-arcgis-pro-project/m-p/386436#M30482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you would get better luck with this question in&amp;nbsp; sub-space&amp;nbsp;&lt;A href="https://community.esri.com/community/developers/gis-developers/python"&gt;https://community.esri.com/community/developers/gis-developers/python&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2020 12:49:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/delete-feature-class-from-arcgis-pro-project/m-p/386436#M30482</guid>
      <dc:creator>AnttiKajanus</dc:creator>
      <dc:date>2020-01-21T12:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: Delete feature class from ArcGIS Pro project</title>
      <link>https://community.esri.com/t5/python-questions/delete-feature-class-from-arcgis-pro-project/m-p/386437#M30483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, I moved the question to the Python sub-space.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2020 13:51:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/delete-feature-class-from-arcgis-pro-project/m-p/386437#M30483</guid>
      <dc:creator>RehmSoftware</dc:creator>
      <dc:date>2020-01-21T13:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: Delete feature class from ArcGIS Pro project</title>
      <link>https://community.esri.com/t5/python-questions/delete-feature-class-from-arcgis-pro-project/m-p/386438#M30484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My guess is that you passed the layer name to Delete and that is why only the layer was deleted.&amp;nbsp; If you want to delete a feature class, you need to pass the full path to the feature class to Delete so that it knows you are wanting a feature class and not a layer or some other object with the same name removed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2020 14:31:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/delete-feature-class-from-arcgis-pro-project/m-p/386438#M30484</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-01-21T14:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Delete feature class from ArcGIS Pro project</title>
      <link>https://community.esri.com/t5/python-questions/delete-feature-class-from-arcgis-pro-project/m-p/386439#M30485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply. I tried to specify the full path but I wasn't successful.. maybe I'm missing something. Here's the code I typed into the interactive python prompt in ArcGIS:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;CreateFeatureclass_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;env&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;workspace&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"test_fc"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"POLYGON"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;Result &lt;SPAN class="string token"&gt;'C:\\Users\\Tom\\Documents\\ArcGIS\\Projects\\Example\\Example.gdb\\test_fc'&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;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;&lt;SPAN class="string token"&gt;'C:\\Users\\Tom\\Documents\\ArcGIS\\Projects\\Example\\Example.gdb\\test_fc'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;Result &lt;SPAN class="string token"&gt;'true'&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;However, the layer in the map is gone.. but the feature class is still present in the Example.gdb. What am I doing wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:45:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/delete-feature-class-from-arcgis-pro-project/m-p/386439#M30485</guid>
      <dc:creator>RehmSoftware</dc:creator>
      <dc:date>2021-12-11T17:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: Delete feature class from ArcGIS Pro project</title>
      <link>https://community.esri.com/t5/python-questions/delete-feature-class-from-arcgis-pro-project/m-p/386440#M30486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How are you coming to the conclusion that the FC is still there?&amp;nbsp; If it is the Catalog pane in Pro, you need to hit F5 to refresh the contents of the FGDB.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2020 16:21:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/delete-feature-class-from-arcgis-pro-project/m-p/386440#M30486</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-01-21T16:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: Delete feature class from ArcGIS Pro project</title>
      <link>https://community.esri.com/t5/python-questions/delete-feature-class-from-arcgis-pro-project/m-p/386441#M30487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;*facepalm* You're right of course.. I assumed that the Catalog pane would update itself automatically just like everything else does in ArcGIS Pro to reflect changes. But turns out it didn't. Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jan 2020 07:27:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/delete-feature-class-from-arcgis-pro-project/m-p/386441#M30487</guid>
      <dc:creator>RehmSoftware</dc:creator>
      <dc:date>2020-01-22T07:27:19Z</dc:date>
    </item>
  </channel>
</rss>

