The dynamics of the cooling of a strongly heated spherically symmetric cavity produced by an explosion in the upper atmosphere is investigated, allowing for the gas motion during the heat conduction. Conditions for a self‐similar cooling process are found, and the corresponding self‐similar dynamics equations are solved. The characteristic cooling time of the heated cavity is determined as a function of the energy release and parameters of the neutral atmosphere at the height of explosion.