deleting unnecessary templates