You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/service-bus-messaging/batch-delete.md
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,23 @@ You can delete messages by calling [DeleteMessagesAsync](/dotnet/api/azure.messa
32
32
33
33
Additionally, you can call [PurgeMessagesAsync](/dotnet/api/azure.messaging.servicebus.servicebusreceiver.purgemessagesasync?view=azure-dotnet-preview) to purge all messages from entity.
34
34
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
+
35
52
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.
0 commit comments