delete obsolete templates