correct function to delete old pairings