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 { AppConfigurationManagementClient } = require("@azure/arm-appconfiguration");
  const { DefaultAzureCredential } = require("@azure/identity");
  
  /**
   * This sample demonstrates how to Permanently deletes the specified configuration store.
   *
   * @summary Permanently deletes the specified configuration store.
   * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/preview/2021-10-01-preview/examples/DeletedConfigurationStoresPurge.json
   */
  async function purgeADeletedConfigurationStore() {
    const subscriptionId = "c80fb759-c965-4c6a-9110-9b2b2d038882";
    const location = "westus";
    const configStoreName = "contoso";
    const credential = new DefaultAzureCredential();
    const client = new AppConfigurationManagementClient(credential, subscriptionId);
    const result = await client.configurationStores.beginPurgeDeletedAndWait(
      location,
      configStoreName
    );
    console.log(result);
  }
  
  purgeADeletedConfigurationStore().catch(console.error);
  