Following up on Using FeatureClassToFeatureClass from list to concatenated list?
The error I get is "Parsing error SyntaxError: invalid syntax (line 10)".
Using the methods from above I am unable to get following to work.
I want to delete selected feature classes using filtered list. This example is a simplified version of what I need.
# Import arcpy module import os, fnmatch, arcpy arcpy.env.workspace = r"D:\_StuData\GIS\Projects\PersonalProjects\Product\test.gdb" # variables: fcs = arcpy.ListFeatureClasses() filtered = fnmatch.filter(fcs, '*copy') # Delete selected fcs for fc in filtered arcpy.Delete_management(fc)