Solved! Go to Solution.
import arcpy EingabeTabelle = r"C:\tmp\Test.gdb\YourTable" field = "Liste" whereClause = field + " IS NULL" updCurs = arcpy.UpdateCursor(EingabeTabelle, whereClause) for row in updCurs: if not row.getValue(field): updCurs.deleteRow(row)
up_curs = arcpy.UpdateCursor(fc,"FIELD IS NULL") for row in up_curs: if not row.getValue(FIELD): row.deleteRow(row)
arcpy.MakeFeatureLayer_management(fc,layer) arcpy.SelectLayerByAttribute_management(layer,"FIELD IS NULL") desc = arcpy.Describe(layer) feat_count = int(arcpy.GetCount_management(parcel).getOutput(0)) feat_ids = desc.FIDSet if feat_count > 0 and len(feat_ids) > 0: arcpy.DeleteFeatures_management(layer)
import arcpy EingabeTabelle = r"C:\tmp\Test.gdb\YourTable" field = "Liste" whereClause = field + " IS NULL" updCurs = arcpy.UpdateCursor(EingabeTabelle, whereClause) for row in updCurs: if not row.getValue(field): updCurs.deleteRow(row)