Hello,
I have many feature classes in multiple gdbs that have empty feature classes. Is there anyway to automate a process to look through each .gdb, find the empty feature classes, and to delete the empty feature classes from the .gdb?
Thank you for your time all!
Regards,
Tom
Solved! Go to Solution.
Probably the easiest way to do this, would be to use some python coding. You may want to move this thread to the Python space. Please remove any duplicate posts of this question.
You can loop through all the workspaces based on a list of gdb's or recursively loop (walk) through folders. Read the content (list featureclasses) and for each featureclass do a count on the features and delete those with 0 features.
Probably the easiest way to do this, would be to use some python coding. You may want to move this thread to the Python space. Please remove any duplicate posts of this question.
You can loop through all the workspaces based on a list of gdb's or recursively loop (walk) through folders. Read the content (list featureclasses) and for each featureclass do a count on the features and delete those with 0 features.
Thank you for the guidance and redirection!