private static void DeleteTypes() { Console.WriteLine($"Deleting Types"); string types = File.ReadAllText(SdsTypePath); List <SdsType> typeList = JsonConvert.DeserializeObject <List <SdsType> >(types); foreach (var type in typeList) { try { MetadataService.DeleteTypeAsync(type.Id).Wait(); } catch (Exception ex) { Console.Write(ex); // Note: For delete of type we are not causing the test to error if it failes because it is common that a type might exist on for other streams. If you want to make sure it delete uncomment the line below. // LogException(ex); } } }