A government primary school building was reduced to ruins in a midnight blaze in Malpora area of Ranipora in South Kashmir’s Anantnag district on Wednesday.