@Fabien Coloignier Thank you for reaching out to Microsoft Q&A. I understand that you are having issues with deleting the storage account access policy for the container after locking the time based retention policy.
Have you tried to delete the Blobs in the Container and then delete the container or storage account?
Please refer to similar issue resolved here- https://stackoverflow.com/questions/54090887/how-can-i-delete-a-lease-container-with-a-audit-log-in-azure
https://learn.microsoft.com/en-us/answers/questions/155202/cannot-delete-a-storage-account-with-containers-wi.html
https://learn.microsoft.com/en-us/answers/questions/447677/blob-storage-immutability-termination.html
Let me know if the above solution works or not so we can further troubleshoot the issue. Thank you!
Please let us know if you have any more questions and we will be glad to assist you further. Thank you!
Remember:
Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.
Want a reminder to come back and check responses? Here is how to subscribe to a notification.