Azure data factory Cosmos Db delete record

Diana Milena Coronado Granados 1 Reputation point
2020-11-12T13:03:33.18+00:00

hello

After run an ETl process through ADF I need to run a bluk delete on cosmos DB . I know that ADf doesn't suppor this feature but it could be possible to do it through an azure function.
I don't know how to deal with a bulk delete(based on a condiition) do you ahve examples athat guides me how to do it?

many thanks

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,322 questions
Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,454 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,642 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Navtej Singh Saini 4,216 Reputation points Microsoft Employee
    2020-11-13T02:18:55.527+00:00

    @Diana Milena Coronado Granados

    Our Azure Cosmos DB product owner @Mark Brown - MSFT has replied to you on StackOverflow thread.

    Here is answer:
    "Currently there is no way to do a bulk delete or truncate on a Cosmos container. Typically the way most people do this today is to delete and then recreate the container. That avoids the RU/s cost of deleting every item."

    Please let us know if you need any further help regarding this.

    Thanks
    Navtej S

    0 comments No comments