public void DeleteTemplate() { VssConnection connection = Context.Connection; WorkItemTrackingHttpClient client = connection.GetClient <WorkItemTrackingHttpClient>(); try { client.DeleteTemplateAsync(getTeamContext(), Context.GetValue <Guid>("$newTemplateId")); Console.WriteLine("Delete template successed."); } catch { Console.WriteLine("Delete template Failded."); } }