delete unessasary template