delete duplicate foreign key