在Azure门户中删除多个DocDb文档 [英] Delete Multiple DocDb Documents within the Azure Portal
问题描述
我正在寻找一种删除多个DocDB文档的方法,而无需使用文档资源管理器"或任何外部API等.
I'm looking for a way to delete multiple DocDB documents without using the 'document explorer' or any external APIs etc.
我在Azure门户中的外观很好,但似乎找不到一个可以让我在从* WHERE位置删除*"的地方...
I've had a good look through the Azure Portal, and I can't seem to find a place that lets me do a 'DELETE * FROM c WHERE'...
查询资源管理器不允许这样做,因此我将其完全空白.我们将DocDB用作另一个数据库的缓冲区,因此需要尽快清除旧文档,因为我们已接近配额.
The query explorer doesn't allow this, so I've drawn a complete blank. We are using our DocDB as a buffer for another DB so need to clear old documents soon, as we are close to our quota.
推荐答案
您可以在门户网站中使用脚本资源管理器执行以下脚本: https ://github.com/Azure/azure-documentdb-js-server/blob/master/samples/stored-procedures/bulkDelete.js .
You can execute this script using Script Explorer in the portal: https://github.com/Azure/azure-documentdb-js-server/blob/master/samples/stored-procedures/bulkDelete.js.
-Mimi
这篇关于在Azure门户中删除多个DocDb文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!