Azure Cosmos DB Preview Version API

Raman Sharma 21 Reputation points Microsoft Employee


I need to use the API DeleteAllItemsByPartitionKeyStreamAsync ( for one of my usecase. According to the documentation, this API is only available to preview versions. I have following doubts, can someone please help me with them questions:

  1. The DeleteAllItemsByPartitionKeyStreamAsync API was in the version 3.25 as preview, in version 3.31.2 it needs preview version, why does this API not release in stable versions?
  2. Is there any other API that can do the work of deleteing all items in a partition.


Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,048 questions
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
8,167 questions
{count} votes

Accepted answer
  1. ShaktiSingh-MSFT 7,111 Reputation points Microsoft Employee

    Hi @Raman Sharma ,

    Thanks for your patience.

    Internal team has replied that in interest of stabilizing this implementation to perform Delete All Items by Partition Key of Cosmos DB.- this feature is pushed out to later part of H2.
    It is suggested by them to perform explicit deletes of all data. That is the right way to amortize the costs.

    Hope this will help. Please let us know if any further queries.

    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you.
      Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
    0 comments No comments

0 additional answers

Sort by: Most helpful