Hello Cedric Flemming,
Greetings! Welcome to Microsoft Q&A Platform.
It appears that you’re encountering an issue when trying to delete an Azure File Share from your storage account. The error message indicates that the file share is impacted by a resource lock.
In order to delete the file share, you need to remove the lock first and then try to delete the Azure File Share. To delete the storage lock, please check whether the lock is applied to a single storage account or a resource group, and then proceed with the deletion operation accordingly. The below article explains more about types of resource locks. https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/lock-resources?tabs=json#considerations-before-applying-your-locks
Select storage account -> Settings -> Locks -> To delete the lock, select the Delete button.
Can you check any other client accessing the share? Create another test file in the same storage account (file share) for testing purpose and see are facing the similar issue?
Azure - Clearing the lock on a file within an Azure File Share Based on the error message you may refer to this article: https://learn.microsoft.com/en-us/rest/api/storageservices/managing-file-locks which provides detailed information on file locks Try to Unlock all Azure file share locks This article lists common problems that are related to Microsoft Azure Files when you connect from Windows clients. It also provides possible causes and resolutions for these problems. In addition to the troubleshooting steps in this article: Unable to delete files Sharing violation
Additional details: Cannot delete full directory structure from Directory in File Share deleting non empty directory in fileshare in azure storage.
Hope this answer helps! Please let us know if you have any further queries. I’m happy to assist you further.
Please "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.