Skip to content

Commit 552109a

Browse files
authored
Update batch-delete.md
1 parent a435501 commit 552109a

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

articles/service-bus-messaging/batch-delete.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,23 @@ You can delete messages by calling [DeleteMessagesAsync](/dotnet/api/azure.messa
3232

3333
Additionally, you can call [PurgeMessagesAsync](/dotnet/api/azure.messaging.servicebus.servicebusreceiver.purgemessagesasync?view=azure-dotnet-preview) to purge all messages from entity.
3434

35+
### Using Azure Portal
36+
37+
You can also purge messages from entity using Service Bus explorer available on Azure Portal. You can follow following steps to purge messages:
38+
39+
1. Navigate to 'Service Bus explorer' blade on the entity you want to delete messages from.
40+
2. Choose 'Receive mode' in Service Bus explorer dropdown.
41+
42+
:::image type="content" source="./media/batch-delete/choose-receive-mode-sb-explorer.png" alt-text="Screenshot of dropdown with Receive mode selected." lightbox="./media/batch-delete/choose-receive-mode-sb-explorer.png":::
43+
44+
3. Click on the purge messages option as shown in snapshot.
45+
46+
:::image type="content" source="./media/batch-delete/purge-messages.png" alt-text="Screenshot of Purge messages selected." lightbox="./media/batch-delete/purge-messages.png":::
47+
48+
4. Another dialog box will appear, enter 'purge' to execute purge messages operation.
49+
50+
:::image type="content" source="./media/batch-delete/purge-messages-action.png" alt-text="Screenshot of entering Purge to confirm." lightbox="./media/batch-delete/purge-messages-action.png":::
51+
3552
When using Azure SDKs to perform these operations, the beforeEnqueueTime parameter defaults to the current UTC time (DateTime.UtcNow()). It’s important to ensure you provide the correct values to prevent unintended message deletion.
3653

3754
>[!NOTE]

0 commit comments

Comments
 (0)