Skip to main content
replaced http://gis.stackexchange.com/ with https://gis.stackexchange.com/
Source Link

Following up on Using FeatureClassToFeatureClass from list to concatenated list?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)

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)

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)
added the error from the comment
Source Link
jbchurchill
  • 4.5k
  • 22
  • 41

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)

Following up on Using FeatureClassToFeatureClass from list to concatenated list?

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)

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)
added 82 characters in body; deleted 142 characters in body; deleted 5 characters in body
Source Link
PolyGeo
  • 65.4k
  • 29
  • 114
  • 345

Following up on the above Related postUsing FeatureClassToFeatureClass from list to concatenated list?

Using the methods from above I am unable to get following to work. Sorry very basic.

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)

Following up on the above Related post

Using the methods from above I am unable to get following to work. Sorry very basic.

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)

Following up on Using FeatureClassToFeatureClass from list to concatenated list?

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)
edited tags; edited title
Link
Loading
removed TIA
Source Link
Vince
  • 20.3k
  • 16
  • 48
  • 65
Loading
Source Link
Stu
  • 55
  • 1
  • 1
  • 4
Loading