delete old template codes