I am trying to figure out how to write a Python script that will use Search Cursor to go thru a Feature Class based on a list of attributes in the script and delete the entire row.
I am not the best code writer, so please bare with me. This is what I have but nothing is working:
expression = ('45074.0115', '45074.0116', '45074.0117', '45074.0118', '45074.0119', '45074.0120')
with arcpy.da.UpdateCursor(MEWCo_PARCELS_UPDATE, "PID", expression) as cursor:
for row in cursor:
row[0] = 0
cursor.deleteRow())
I know 100% the code is written incorrectly, just not sure what part.
MEWCo_PARCELS_UPDATE is the FC
PID is the field
Thank You