Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

290
Views
Bulk Delete Cosmos DB operations using javascript stored procedure where partitionkey is blank / ""

I'm attempting to use the below JS stored procedure to bulk delete documents in Cosmos DB (Document DB) from Azure Portal / Data Explorer. It is working for non-blank partitionKey values however it is not when the value is = "".

The stored procedure asks for a mandatory partitionKey value (as expected) and while it accepts a blank field, it won't identify records correctly (returns "deleted": 0). The equivalent ad-hoc SELECT query identifies the record successfully.

https://github.com/Azure/azure-cosmosdb-js-server/blob/master/samples/stored-procedures/bulkDelete.js

I have tried specifying partitionKey into request options adding one of below, but to no avail:

partitionKey : ""
partitionKey : null
partitionKey : {}
partitionKey : undefined
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!