removes old unused templates.