had to loop through models to change null key to id, now deleting one row works