I have 120 features class within a database "SDE"

354
2
11-20-2012 01:36 PM
GualbertoHernández_Juárez
New Contributor
I have 120 features class within a database "SDE" and I need to delete them except one. As I can do with python?

Thanks
Gualberto
Tags (2)
0 Kudos
2 Replies
MathewCoyle
Frequent Contributor
You could make a list of all the feature classes in your database, remove the one you want to keep, and loop through them all deleting. This seems like it would be easier just to select them all in Catalog and delete them that way. If this is an actual versioned SDE database make sure you are working with the right version.
0 Kudos
GualbertoHernández_Juárez
New Contributor
mzcoyle

Many Thanks,

Functioned the list.
0 Kudos