Hei @Sneha VK ,
Thank you for reaching out to Microsoft Q and A
The most probable reason for you to be able to see the containers even after you deleted it is because the storage account may have soft delete setting enabled.
You can read about it here
This setting essentially is to avoid accidents, when you delete a container and want it back. This is the reason when the storage account is queried for containers it results in a field called "Isdeleted". This setting is under Data management > Data protection, in the storage account menu. I would not recommend removing the retention period in the setting, it is a fail safe.
Another reason can be that the container blob are being leased, it may help to check enumerate each blob in each container, check the lease state, update it to 'available' if it is leased (if business approves) and then try to delete the container.
you can check the leased state of a blob via this command line, it is easy to put it in loop to check multiple conainer blobs.
$mysa = Get-AzStorageAccount -ResourceGroupName mohit-temperory -Name qwertymnbvcxz $mycontainer = Get-AzStorageContainer -Context $mysa.Context -Name deleteme (Get-AzStorageBlob -Container $mycontainer.Name -Context $mysa.Context).BlobClient.GetProperties().Value.LeaseState
Please "Mark as answer" if it helped.