azure - How to delete a document in documentdb using c# where i have variable with timestamp by quering it -
i have document in data following format.
[ { "timestamp": "3/18/2015 7:57:21 pm", } ]
i need query document date(3/18/2015) , delete document using c#. time in timestamp (7:57:21 pm) should not queried. how can it? if there multiple records same date, need delete documents.
thanks naveen
today need know doc._self delete document. query document(s) based on criteria like, including timestamp (no reason not use this, it's there reason). execute delete statement against each document found.
if want in batch minimize server roundtrips, consider doing in stored procedure, similar our published bulkimport.js script.
Comments
Post a Comment