I've got a script which runs through some GPS data and creates several outputs (tables, shapefiles etc.).

However, when I've just run it, the folder where all the input data lies (along with most of the outputs) has just vanished without a trace. It's not even the recycling bin.

The only references to 'Delete' are deleting fields, deleting a table if it exists (*arcpy.Delete_management(gpsStreetSummary)*) and at the start deleting a GDB if it exists.

There's nothing I can find in the script to explain why it would just delete everything?? Does anyone know if there is a bug in arcpy that sometimes causes this to happen?

closed as unclear what you're asking by PolyGeo, Jason Scheirer, Paul, Fezter, Devdatta Tengshe Oct 22 '13 at 4:58

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • Delete_management deletes the file off disk not just a table. So I guess you just nuked all the data with that one command. – Nathan W Oct 21 '13 at 10:11
  • So Delete_management deletes everything despite what's in the argument? Here gpsStreetSummary is just one of several files. It's worked fine before but all of a sudden I've found absolutely everything in the workspace deleted – Mike Oct 21 '13 at 10:15
  • 2
    Well it should only delete that one file then. Maybe post more of you code? – Nathan W Oct 21 '13 at 10:19
  • 1
    According to the ESRI docs, delete would only move a folder to the recycle bin even if you were doing it with that somehow. You'll need to add some detail. – Evil Genius Oct 21 '13 at 11:10

Browse other questions tagged or ask your own question.