In this Azure tutorial, we will discuss how to delete Azure account or how to cancel Azure subscription.
As we have discussed already, Microsoft provides lots of services and features with Azure subscriptions. But if you don’t like those of you, you may think Microsoft is charging more for what you are using, or you think the other vendors can fulfill your requirements at a lower price compared to Microsoft Azure.
Or, maybe you are a beginner, and you might have created this subscription just for learning purposes and don’t want to pay once the trial period is over, or you might have an old account you don’t want to continue with.
So, there can be multiple reasons associated with deciding to delete an Azure free account or subscription. When you have decided to delete the Azure account, you should delete it properly.
If you do not delete your Microsoft Azure account properly, Microsoft will charge for the resources running under your subscription, and the charge will be automatically deducted from your Credit card associated with the Subscription.
How to delete Azure Account
So, it is suggested to delete the Azure account or Subscription properly when you have decided to deactivate the Azure account.
You must delete all the Azure resources, for example, Virtual Machines, Storages, containers, Networks, Resource groups, etc
To know how to delete an Azure subscription, follow the below steps
1. The first step is to log in to the Microsoft Azure portal (https://portal.azure.com/)
2. Once you Log into the Azure Portal, Click on the Cost Management + Billing link from the left navigation

3. On the Cost Management + Billing page, click on the Subscriptions link from the left navigation

4. Now, click the Manage button on the Cost Management + Billing page.

5. Now, you can see your Subscription name. Click on the Subscription name.

6. Now the next step is to click on the Cancel subscription link from the below screen to Cancel the Azure Subscription

7. Finally, select the Yes, cancel my Subscription option and select one Reason for Cancellation, then click on the Tick button as highlighted below.

This is how we can delete Azure subscription, or how can I cancel my Microsoft Azure subscription?
How to delete Azure account permanently using PowerShell
The first step is ensuring you have the Azure module installed in your system. If not, or if you are getting errors while installing the Azure module, refer to my Article. The term ‘Get-AzureAccount’ is not recognized error to install the Azure module.
Now, you have the Azure module installed on your machine. The next step is to execute the below command to get the details of all of your subscription
PS C:\WINDOWS\system32> Get-AzureAccount | format-table idor
PS C:\WINDOWS\system32> Get-AzureAccount
Note: Since I don’t have many subscriptions with this account, I am not getting the complete list, but in your case, you will get all your subscription details with your account.
After executing the command, you will get all your Subscription details, including the ID, Type, Subscription, and Tenant details. Copy the subscription ID or the name of the one you want to delete. Make sure you choose the correct Subscription ID.
Now, to remove the Azure subscription, use the below cmdlet
PS C:\WINDOWS\system32> Remove-AzureAccount account-name
Note: Before executing the Remove-AzureAccount command, make sure you have decided to delete the Azure account.
This is how we can Delete Azure Account using PowerShell.
How To Delete Azure Account, Not Just Subscriptions, Also Delete Entire Account
Follow the below steps to delete your Azure account permanently, including canceling the Azure subscription.