implements deleting for n vs m connection..