Skip to content

Instantly share code, notes, and snippets.

@dstarr
Last active March 7, 2018 19:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dstarr/78bbe1014a9fe38b776cf5eeda35191c to your computer and use it in GitHub Desktop.
Save dstarr/78bbe1014a9fe38b776cf5eeda35191c to your computer and use it in GitHub Desktop.
Updating the docs my adding 100 degrees to the temperature.
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