private async Task deleteAsync(AnomalyDetectorClient client, Guid model_id)
        {
            await client.DeleteMultivariateModelAsync(model_id).ConfigureAwait(false);

            int model_number = await getModelNumberAsync(client).ConfigureAwait(false);

            Console.WriteLine(String.Format("{0} available models after deletion.", model_number));
        }
        private async Task <int> getModelNumberAsync(AnomalyDetectorClient client, bool delete = false)
        {
            int count = 0;
            AsyncPageable <ModelSnapshot> model_list = client.ListMultivariateModelAsync(0, 10000);

            await foreach (ModelSnapshot x in model_list)
            {
                count += 1;
                Console.WriteLine(String.Format("model_id: {0}, createdTime: {1}, lastUpdateTime: {2}.", x.ModelId, x.CreatedTime, x.LastUpdatedTime));
                if (delete & count < 4)
                {
                    await client.DeleteMultivariateModelAsync(x.ModelId).ConfigureAwait(false);
                }
            }
            return(count);
        }