AnsweredAssumed Answered

delete multiple files in python

Question asked by leygraves on Aug 13, 2014
Latest reply on Aug 15, 2014 by jskinner-esristaff

Hi Users,

 

I'm sure I have done this before but cannot recall how to do it. I would like to delete multiple feature classes using python but only files that have a suffix of say '1405' or '1305' for example. The main file name would be different e.g. 'NorthernWells_1405' & SouthernWells_1405' so use the suffix in the code to find these files and remove them.

In addition to this I would also like to rename files with a suffix like '1406' but again have a different file name.

Has anyone written some python code like this?

 

Any assistance would be much appreciated,

Chris

Outcomes