Delete an HDInsight cluster using your browser, PowerShell, or the Azure Classic CLI

HDInsight cluster billing starts once a cluster is created and stops when the cluster is deleted. Billing is pro-rated per minute, so you should always delete your cluster when it is no longer in use. In this document, you learn how to delete a cluster using the Azure portal, Azure PowerShell, and the Azure Classic CLI.


Deleting an HDInsight cluster does not delete the Azure Storage accounts or Data Lake Storage associated with the cluster. You can reuse data stored in those services in the future.

Azure portal

  1. Log in to the Azure portal and select your HDInsight cluster. If your HDInsight cluster is not pinned to the dashboard, you can search for it by name using the search field.

    portal search

  2. From the cluster settings, select the Delete icon. When prompted, select Yes to delete the cluster.

    delete icon

Azure PowerShell


This article has been updated to use the new Azure PowerShell Az module. To learn more about the new Az module and AzureRM compatibility, see Introducing the new Azure PowerShell Az module. For installation instructions, see Install Azure PowerShell.

From a PowerShell prompt, use the following command to delete the cluster:

Remove-AzHDInsightCluster -ClusterName CLUSTERNAME

Replace CLUSTERNAME with the name of your HDInsight cluster.

Azure Classic CLI


This article contains content that requires the Azure classic CLI. The current release of the Azure CLI doesn't have support for the features outlined in this article, so the classic CLI is required.

The classic CLI can be installed side by side with the modern Azure CLI, but we recommend the Azure CLI for all new scripts and deployments where feature support is available. To install the classic CLI, see Install the Azure classic CLI. To install the current CLI, see Install the Azure CLI.

From a prompt, use the following to delete the cluster:

azure hdinsight cluster delete CLUSTERNAME

Replace CLUSTERNAME with the name of your HDInsight cluster.