Globally delete the letter code from all gift records before deleting the letter code from Configuration > Letters.