Process of thermal metal extraction