I have a process where I use
arcpy.FeatureClasstoShapefile() to re-create shapefiles. Unfortunately,
arcpy.env.overwriteOutput = True does NOT overwrite the previous ones. I have tried using
arcpy.Delete_management() on the original shapefiles, but sometimes it doesn't work either.
My question is: if I use
os.unlink("asdf.shp") will that delete the whole shapefile (including all those subfiles that windows explorer sees) or just the single file with the .shp extension? Also, does it matter? what will happen to the other files if I just delete the .shp file and then try to create a new shapefile that has the same name?