@pragadeeshraju-2799 Please try the following and let me know if that resolves your issue:
Install Azure PowerShell module:
https://learn.microsoft.com/en-us/powershell/azure/install-az-ps?view=azps-2.8.0
and run below PowerShell commands to close the open handles:
Connect-AzAccount
Select-AzSubscription -Subscription <The subscription of the storage account>
Set-AzCurrentStorageAccount -ResourceGroupName <Resource group of the storage account> -Name <Storage account name>
Get-AzStorageFileHandle -sharename <file share name>-Recursive | Sort-Object ClientIP,OpenTime
Example 1: Lists all file shares of current Storage Account, and close all file handles of the file shares recursively.
Get-AzStorageShare | Close-AzStorageFileHandle -CloseAll -Recursive
Example 2: Close all file handles on a file
Close-AzStorageFileHandle -ShareName "mysharename" -Path 'dir1/dir2/test.txt' -CloseAll
Please see this page for more information. https://learn.microsoft.com/en-us/azure/storage/files/storage-troubleshoot-cannot-delete-files-azure-file-share
Please do not forget to "Accept the answer" and Upvote on the post that helps you, this can be beneficial to other community members.