Example #1
0
        private static void Delete()
        {
            Console.WriteLine("Deleting blob storage");
            _blobStorage.DeleteContainer(_containerName);

            using (var dbContext = new DocumentDbContext())
            {
                dbContext.OpenDatabase(_databaseName);
                Console.WriteLine("Deleting db collection");
                try
                {
                    dbContext.DeleteCollection(_collectionName);
                }
                catch (ApplicationException) {}
            }
        }