<?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 Files Stored in ArcCatalog in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/delete-files-stored-in-arccatalog/m-p/282055#M9709</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I am writing a script that exports a feature class then zips it up and emails it to whoever needs it. &amp;nbsp;I am having trouble because I need to be able to delete the exported shapefiles so that I can use this tool and not have old exported data in the zip file. &amp;nbsp;I can not use CopyFeature_Management because some of the data is not a shapefile (Image of that is below). So I have to use FeatureClasstoShapefile_conversion instead which doesn't let me overwrite the previously exported shapefiles. &amp;nbsp;So I just end up getting shapefiles with a _1 after them. I am either doing this wrong or I need to find some way of deleting files in ArcCatalog without doing so manually. &amp;nbsp;I have os.remove() to delete the zip file, but its just that darn&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/373621_pastedImage_1.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/373622_pastedImage_2.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Sep 2017 20:26:55 GMT</pubDate>
    <dc:creator>JonathanUrshan</dc:creator>
    <dc:date>2017-09-26T20:26:55Z</dc:date>
    <item>
      <title>Delete Files Stored in ArcCatalog</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/delete-files-stored-in-arccatalog/m-p/282055#M9709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I am writing a script that exports a feature class then zips it up and emails it to whoever needs it. &amp;nbsp;I am having trouble because I need to be able to delete the exported shapefiles so that I can use this tool and not have old exported data in the zip file. &amp;nbsp;I can not use CopyFeature_Management because some of the data is not a shapefile (Image of that is below). So I have to use FeatureClasstoShapefile_conversion instead which doesn't let me overwrite the previously exported shapefiles. &amp;nbsp;So I just end up getting shapefiles with a _1 after them. I am either doing this wrong or I need to find some way of deleting files in ArcCatalog without doing so manually. &amp;nbsp;I have os.remove() to delete the zip file, but its just that darn&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/373621_pastedImage_1.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/373622_pastedImage_2.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2017 20:26:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/delete-files-stored-in-arccatalog/m-p/282055#M9709</guid>
      <dc:creator>JonathanUrshan</dc:creator>
      <dc:date>2017-09-26T20:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Files Stored in ArcCatalog</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/delete-files-stored-in-arccatalog/m-p/282056#M9710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It might be a good idea to share your script and tag &lt;A href="https://community.esri.com/community/developers/gis-developers/python?sr=search&amp;amp;searchId=6d92d6f6-4930-42e1-bd1d-6492071ca32a&amp;amp;searchIndex=0"&gt;https://community.esri.com/community/developers/gis-developers/python?sr=search&amp;amp;searchId=6d92d6f6-4930-42e1-bd1d-6492071ca32a&amp;amp;searchIndex=0&lt;/A&gt;‌ (assuming you're using Python).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2017 21:22:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/delete-files-stored-in-arccatalog/m-p/282056#M9710</guid>
      <dc:creator>AdrianWelsh</dc:creator>
      <dc:date>2017-09-26T21:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Files Stored in ArcCatalog</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/delete-files-stored-in-arccatalog/m-p/282057#M9711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are working with Python, try adding the following line after importing the modules.&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;env&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;overwriteOutput &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token boolean"&gt;True&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2017 22:11:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/delete-files-stored-in-arccatalog/m-p/282057#M9711</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2017-09-26T22:11:19Z</dc:date>
    </item>
  </channel>
</rss>

