How To Delete Disk In Azure

It is crucial to delete the disk in Azure if it is not being used. I have identified two simple approaches to doing this task quickly. In this article, I will walk you through both approaches.

Delete Disk In Azure

Let us dive deep into those approaches individually.

  • Approach-1: Using Azure Portal
  • Approach-2: Using Azure PowerShell

Approach-1: Using Azure Portal

Follow the below steps.

Note: Before deleting the disk, ensure the status of the disk state is unattached.

1. Log in to the Azure Portal (https://azurelessons.com/).

2. Search for disks and click on the search result.

delete disk azure

3. You will now see all the available disks you have created. Click on the one you wish to delete.

delete disk in Azure

4. Ensure the Disk state is “Unattached,” then click the Delete button, as highlighted in the screenshot below.

How to delete disk in Azure

Click on the OK button for the confirmation of the deletion process.

how to delete a disk from an azure vm

Now, the disk got deleted successfully. Check out the screenshot below.

delete a disk from an azure vm

Approach-2: Using Azure PowerShell

You can execute the below Azure PowerShell command to remove or delete the disks in Azure.

Remove-AzDisk -ResourceGroupName 'DEMOVM' -DiskName 'AzureITVM_OsDisk_1_890ad626b6a9490b9b867a3c87b474f3' -Force

After executing the above command, the disks got deleted successfully. Check out the screenshot below.

delete disk azure powershell

Video Tutorial

You may also like following the articles below

Azure Virtual Machine

DOWNLOAD FREE AZURE VIRTUAL MACHINE PDF

Download our free 25+ page Azure Virtual Machine guide and master cloud deployment today!