Frappe.db.delete

I’m looking to use frappe.db.delete to remove the most recently modified record in a custom table, Warehouse Locations. I want to limit the delete to only one record that matches some filters.

The table is a child table, if that matters.

I am not clear on how to filter one record, based on the “modified” value.
I tried:
frappe.db.delete(‘Warehouse Locations’,
{“warehouse”: warehouse,
“parent”: item_code,
“shelf”: shelf,
“modified”:(“=”,last_record_to_keep[0].modified)})
but I am getting a syntax error.