I would like to delete several raster files in an ArcSDE SQL Server database. I would like to do so with Arcpy. How can I succesfully use a LIKE condition to delete all files in my database that have a certain string of characters, such as _. Meaning that I want to delete all files that contain an underscore. Using the example from Esri, where would I delete all files that for instance contain roadbuffer.
import arcpy # Set the current workspace # arcpy.env.workspace = "c:/base/data.gdb" # Check for existence of data before deleting # if arcpy.Exists("roadbuffer"): arcpy.Delete_management("roadbuffer")
أكثر...
import arcpy # Set the current workspace # arcpy.env.workspace = "c:/base/data.gdb" # Check for existence of data before deleting # if arcpy.Exists("roadbuffer"): arcpy.Delete_management("roadbuffer")
أكثر...