Deleting queried documents from Azure's CosmosDB -
i have collection in cosmosdb has large number of json files. have python program continuously writes , uploads data collection. format of data changed, writing files new structure. have delete files in collection old structure.
question 1: documents have date of creation tag? if so, delete files have date of creation earlier specific date. how can that?
question 2: if answer previous question no, there way can query parts inside old files want delete. cannot query files entirely, can query what's inside of them. there way delete entire documents based on query of what's inside of them? maybe if there way retrieve document ids used respond query, possible.
all documents have property called _ts
unix timestamp of when document created , auto populated cosmos. should able query using property find documents created before specific date.
Comments
Post a Comment