text: /*
   * Copyright (c) Microsoft Corporation.
   * Licensed under the MIT License.
   *
   * Code generated by Microsoft (R) AutoRest Code Generator.
   * Changes may cause incorrect behavior and will be lost if the code is regenerated.
   */
  
  // Copyright (c) Microsoft Corporation.
  // Licensed under the MIT License.
  const { StreamAnalyticsManagementClient } = require("@azure/arm-streamanalytics");
  const { DefaultAzureCredential } = require("@azure/identity");
  
  /**
   * This sample demonstrates how to Deletes the specified cluster.
   *
   * @summary Deletes the specified cluster.
   * x-ms-original-file: specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Cluster_Delete.json
   */
  async function deleteACluster() {
    const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345";
    const resourceGroupName = "sjrg";
    const clusterName = "testcluster";
    const credential = new DefaultAzureCredential();
    const client = new StreamAnalyticsManagementClient(credential, subscriptionId);
    const result = await client.clusters.beginDeleteAndWait(resourceGroupName, clusterName);
    console.log(result);
  }
  
  deleteACluster().catch(console.error);
  