Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

To remove a whole partition in Azure Cosmos DB, follow these steps:

  1. Open the Azure portal and navigate to the Cosmos DB account that contains the partition you want to remove.

  2. In the left-hand menu, click on "Data Explorer" to open the data explorer window.

  3. Expand the database that contains the partition you want to remove.

  4. Expand the container that contains the partition you want to remove.

  5. Click on "Partition key ranges" to view the list of partition key ranges.

  6. Select the partition key range you want to remove and click on the delete button.

  7. Confirm that you want to delete the partition key range and wait for the operation to complete.

Note that this operation will permanently delete all data stored in the selected partition key range, so make sure you have a backup of the data before proceeding. Also, removing a partition key range may impact the performance of your Azure Cosmos DB account, so it's important to plan ahead and monitor your system during and after the operation.