Photo-evaporation by thermal winds in dwarf galaxies