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.

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 best way to find and delete them is to use the scripts in either the Azure CLI or Azure PowerShell articles.

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