Delete selected confirmation not showing for custom delete action.

I had created a custom action for listing screen to delete selected inactive items.
It is deleting the Selected items but not showing delete confirmation page.

I’m sharing the code for action as follows:

actions = [‘delete_queryset’]

def delete_queryset(self, request, queryset):
delete_queryset method is using for id selected inactive record is exists then delete it otherwise it’s not.
inactive_records = queryset.filter(status=‘I’)
if inactive_records.exists():
self.message_user(request, “Inactive records were deleted.”)
self.message_user(request, “No inactive records were found.”)
delete_queryset.short_description = “Delete selected inactive records”