clean-up of the THF and THF-TPI directories