Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot delete blob: There is currently a lease on the blob and no lease ID was specified in the request

Tags:

azure

azure-vm

When I attempt to delete a blob from my storage account container, I get an error message, "There is currently a lease on the blob and no lease ID was specified in the request."

I have 4 virtual machine instances. I also have 8 virtual machine disks, 4 of which are in use (one by each of the virtual machine instances). Strangely, I have 10 blobs listed in my single storage account's lone container, called vhds. Here is a screenshot of the 10 blobs, highlighting the two that I cannot delete.

Can anyone give me guidance on how to delete these blobs? I have no use for them and I'd like to cut down on my storage costs for my subscription.

like image 363
Marty Avatar asked May 01 '13 00:05

Marty


People also ask

How do I remove blob storage from a lease?

Break the lease, if the container or blob has an active lease. Once a lease is broken, it cannot be renewed. Any authorized request can break the lease; the request is not required to specify a matching lease ID.

How do you delete a blob in Azure Blob Storage?

After the specified number of days, the blob's data is removed from the service during garbage collection. A softly deleted blob or snapshot is accessible by calling the List Blobs operation and specifying the include=deleted option.

What should you use to automatically delete blob from Azure blob storage?

We are pleased to announce that we have made an Azure Logic Apps template available to expire old blobs. To set up this automated solution in your environment: Create a new Logic Apps instance, select the “Delete old Azure blobs” template, customize and run.


1 Answers

You need to delete the disks from the Virtual Machines section of the portal.

  • Navigate to Virtual Machines -> Disks
  • Delete the disks

Check this MSDN blog post for the complete instructions: http://blogs.msdn.com/b/windows_azure_technical_support_wats_team/archive/2013/02/05/iaas-unable-to-delete-vhd-there-is-currently-a-lease-on-the-blob.aspx

like image 54
CSharpRocks Avatar answered Sep 30 '22 05:09

CSharpRocks