Delete an HDInsight cluster using your browser, PowerShell, or the Azure 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 CLI 1.0.

Important

Deleting an HDInsight cluster does not delete the Azure Storage accounts or Data Lake Store 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. Once the blade opens for the cluster, select the Delete icon. When prompted, select Yes to delete the cluster.

    delete icon

Azure PowerShell

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

Remove-AzureRmHDInsightCluster -ClusterName CLUSTERNAME

Replace CLUSTERNAME with the name of your HDInsight cluster.

Azure CLI 1.0

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

azure hdinsight cluster delete CLUSTERNAME

Replace CLUSTERNAME with the name of your HDInsight cluster.

Note

Azure CLI 2.0 does not support deleting HDInsight clusters at this time (July 31, 2017).