Find and delete unattached Azure managed and unmanaged disks - Azure portal

Applies to: ✔️ Linux VMs ✔️ Windows VMs ✔️ Flexible scale sets ✔️ Uniform scale sets

When you delete a virtual machine (VM) in Azure, by default, any disks that are attached to the VM aren't deleted. This helps to prevent data loss due to the unintentional deletion of VMs. After a VM is deleted, you will continue to pay for unattached disks. This article shows you how to find and delete any unattached disks using the Azure portal, and reduce unnecessary costs. Deletions are permanent, you will not be able to recover data once you delete a disk.

Prerequisites

None

Managed disks: Find and delete unattached disks

If you have unattached managed disks and no longer need the data on them, the following process explains how to find them from the Azure portal:

  1. Sign in to the Azure portal.

  2. Search for and select Disks.

    On the Disks blade, you are presented with a list of all your disks.

  3. Select the disk you'd like to delete, this brings you to the individual disk's blade.

  4. On the individual disk's blade, confirm the disk state is unattached, then select Delete.

    Screenshot of an individual managed disks blade. This blade will show unattached in the disk state if it is unattached. You can delete this disk if you do not need to preserve its data any longer

Unmanaged disks: Find and delete unattached disks

Unmanaged disks are VHD files that are stored as page blobs in Azure storage accounts.

If you have unmanaged disks that aren't attached to a VM, no longer need the data on them, and would like to delete them, the following process explains how to do so from the Azure portal:

  1. Sign in to the Azure portal.

  2. Search for and select Disks (Classic).

    You are presented with a list of all your unmanaged disks. Any disk that has "-" in the Attached to column is an unattached disk.

    Screenshot of the unmanaged disks blade. Disks in this blade that have - in the attached to column are unattached.

  3. Select the unattached disk you'd like to delete, this brings up the individual disk's blade.

  4. On that individual disk's blade, you can confirm it is unattached, since Attached to will still be -.

    Screenshot of an individual unmanaged disk blade. It will have - as the attached to value if it is unattached. If you no longer need this disks data, you can delete it.

  5. Select Delete.

    Screenshot of an individual unmanaged disk blade, highlighting delete.