In order to remove THERMO_PW, give the command make leave_qe in the thermo_pw directory. Then just remove the directory. Note that the command make leave_qe is needed to restore the original QUANTUM ESPRESSO files.