Skip to content

Commit 22c6310

Browse files
authored
Merge pull request #286368 from Saglodha/update-batch-delete
Update batch delete
2 parents afab2c0 + fc41d4a commit 22c6310

File tree

6 files changed

+25
-0
lines changed

6 files changed

+25
-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-service-bus-explorer.png" alt-text="Screenshot of dropdown with Receive mode selected." lightbox="./media/batch-delete/choose-receive-mode-service-bus-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]

articles/service-bus-messaging/explorer.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,14 @@ After the lock has been abandoned, the message will be available for receive ope
185185

186186
After a message has been dead-lettered, it will be available from the **Dead-letter** subqueue.
187187

188+
### Purge messages
189+
190+
To Purge messages, select the **Purge messages** button of Service Bus explorer.
191+
192+
:::image type="content" source="./media/service-bus-explorer/purge-messages.png" alt-text="Screenshot indicating the purge messages button." lightbox="./media/service-bus-explorer/purge-messages.png":::
193+
194+
Once you enter 'purge' to confirm on the operation, messages would be purged from respective service bus entity.
195+
188196
## Send a message to a queue or topic
189197

190198
To send a message to a **queue** or a **topic**, select the **Send messages** button of the Service Bus Explorer.
149 KB
Loading
65.3 KB
Loading
339 KB
Loading
339 KB
Loading

0 commit comments

Comments
 (0)