Last active
March 7, 2018 19:06
-
-
Save dstarr/78bbe1014a9fe38b776cf5eeda35191c to your computer and use it in GitHub Desktop.
Updating the docs my adding 100 degrees to the temperature.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void DeleteAllDocs() | |
{ | |
List<SensorTick> ticks = _client.CreateDocumentQuery<SensorTick>(_dbcUri).ToList(); | |
foreach (var tick in ticks) | |
{ | |
Uri docUri = UriFactory.CreateDocumentUri(DbName, CollectionName, tick.Id); | |
_client.DeleteDocumentAsync(docUri); | |
Console.WriteLine(@"Deleted: {0}", tick.Id); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment