Using molecular dynamics simulation, we studied thermodynamic effects of a nanobubble's collapse-induced erosion occurring at different ambient temperatures. We analyzed the dynamics of a single nanobubble collapsing near an aluminum (Al) solid boundary immersed in water at temperatures ranging 10–60 °C (283–333 K). We used a momentum mirror protocol to investigate the nanobubble's collapse-induced shock wave as the associated nanojet formed and moved toward the solid boundary. The results showed that the nanojet was formed during the collapse process after the collision of the nanobubble with the shock wave. On the aluminum surface, the erosion at lower ambient temperatures was greater than at higher ambient temperatures.