In order to remove thermo_pw, give the command make leave_qe in the thermo_pw directory. Then just remove the directory. Note that if you forget to give the command make leave_qe the original files of QUANTUM ESPRESSO are not restored.