Delete where should be a dict, not a list.