'How can I delete all documents by one partition in one collection in Cosmos db by one query(or in the best way)?
Can I delete all documents by one partition in one collection in Cosmos db by one query?
In my cosmos db database I have more then 100 thousand notifications because of bug in my code. Now I fix bug and need delete this notifications. I try to find solution how to delete this in the best way. Could you help me?
Solution 1:[1]
You need to write code or use a third party tool like Cerebrata which can delete all documents based on a query.
Disclaimer: I do not work for Cerebrata nor do I get paid for recommending them I am simply a happy user of their product.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Matt Douhan |