I'm am trying to use a searchcursor to identify a list of ID's from a dataset. Using the list, I am now trying to delete those rows with the same ID's in another dataset.
I'm not sure where I'm going wrong.
rtc_id_values = []
with arcpy.da.SearchCursor(rtc_shp, "ID") as scursor:
for srow in scursor:
rtc_id_values.append(srow)
with arcpy.da.UpdateCursor(corporate_rtc_dataset, "ID") as ucursor:
for urow in ucursor:
if urow in rtc_id_values:
row.deleteRow()