|
| 1 | +--- |
| 2 | +title: Manage multiple items in Data Explorer |
| 3 | +titleSuffix: Azure Cosmos DB |
| 4 | +description: Use the multiple selection feature of the Data Explorer for Azure Cosmos DB to batch delete items directly in the Azure portal. |
| 5 | +author: meredithmooreux |
| 6 | +ms.author: merae |
| 7 | +ms.service: cosmos-db |
| 8 | +ms.topic: how-to |
| 9 | +ms.date: 06/03/2024 |
| 10 | +#Customer Intent: As a database developer, I want to manage multiple items using the Data Explorer, so that I can delete items in bulk. |
| 11 | +--- |
| 12 | + |
| 13 | +# View and delete multiple items in Azure Cosmos DB Data Explorer |
| 14 | + |
| 15 | +[!INCLUDE[NoSQL, MongoDB](includes/appliesto-nosql-mongodb.md)] |
| 16 | + |
| 17 | +Use the Data Explorer for Azure Cosmos DB to select and delete multiple items directly in the Azure portal. This feature makes it easier to batch manage multiple items without executing a query. |
| 18 | + |
| 19 | +## Prerequisites |
| 20 | + |
| 21 | +- An existing Azure Cosmos DB account. |
| 22 | + - If you have an Azure subscription, [create a new API for NoSQL account](nosql/how-to-create-account.md?tabs=azure-portal). |
| 23 | + - If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) before you begin. |
| 24 | + - Alternatively, you can [try Azure Cosmos DB free](try-free.md) before you commit. |
| 25 | + |
| 26 | +## Delete multiple items |
| 27 | + |
| 28 | +First, use the multiple selection feature to perform a delete operation over multiple items. |
| 29 | + |
| 30 | +1. Sign in to the Azure portal (<https://portal.azure.com>). |
| 31 | + |
| 32 | +1. Navigate to your existing Azure Cosmos DB account. |
| 33 | + |
| 34 | +1. In the resource menu, select **Data Explorer**. |
| 35 | + |
| 36 | +1. Navigate to the **Items** page corresponding to any existing database and container. |
| 37 | + |
| 38 | +1. On the **Items** page, select the checkbox corresponding with all items you wish to manage in a single operation. |
| 39 | + |
| 40 | + :::image type="content" source="media/how-to-data-explorer-manage-items/multiple-selection.png" alt-text="Screenshot of the items management experience in the Azure Cosmos DB Data Explorer with multiple items currently selected."::: |
| 41 | + |
| 42 | + > [!TIP] |
| 43 | + > Alternatively, you can either select multiple items using the <kbd>Shift</kbd> or <kbd>Ctrl</kbd> keys. You can also use the checkbox in the table header to automatically select all items in the current view. |
| 44 | +
|
| 45 | + > [!NOTE] |
| 46 | + > By default, the items view only includes 100 matching items. Select **Load more** to include more items within the current view. |
| 47 | +
|
| 48 | +1. In the command bar, select **Delete**. |
| 49 | + |
| 50 | + > [!TIP] |
| 51 | + > Alternatively, you can use the <kbd>Alt</kbd> + <kbd>D</kbd> or <kbd>Opt</kbd> + <kbd>D</kbd> keyboard shortcut. |
| 52 | +
|
| 53 | +1. In the confirmation dialog, select **Yes** to confirm that the multiple delete operation was intentional. |
| 54 | + |
| 55 | +1. Wait for the operation to complete in the container. The results of the operation are available in the status bar. |
| 56 | + |
| 57 | +## Adjust viewport |
| 58 | + |
| 59 | +Now, use the adjustment features in the Data Explorer to adjust the viewport of items. |
| 60 | + |
| 61 | +1. Navigate to the Data Explorer interface for your existing Azure Cosmos DB account again. |
| 62 | + |
| 63 | +1. On the **Items** page, drag and move the separator between columns to adjust how much content is viewable for each column. |
| 64 | + |
| 65 | +1. Observe that the content rendered for each item updates automatically as the column sizes are adjusted. |
| 66 | + |
| 67 | +## Comments |
| 68 | + |
| 69 | +Use the **Feedback** icon in the command bar of the Data Explorer to give the product team any comments you have about the keyboard shortcuts. |
| 70 | + |
| 71 | +## Related content |
| 72 | + |
| 73 | +- [Delete items by partition key value in Azure Cosmos DB for NoSQL](nosql/how-to-delete-by-partition-key.md) |
| 74 | +- [Move data between containers in Azure Cosmos DB](container-copy.md) |
0 commit comments