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.
  /**
   * This sample demonstrates how to Deletes a server.
   *
   * @summary Deletes a server.
   * x-ms-original-file: specification/mariadb/resource-manager/Microsoft.DBforMariaDB/stable/2018-06-01/examples/ServerDelete.json
   */
  const { MariaDBManagementClient } = require("@azure/arm-mariadb");
  const { DefaultAzureCredential } = require("@azure/identity");
  
  async function serverDelete() {
    const subscriptionId = "ffffffff-ffff-ffff-ffff-ffffffffffff";
    const resourceGroupName = "TestGroup";
    const serverName = "testserver";
    const credential = new DefaultAzureCredential();
    const client = new MariaDBManagementClient(credential, subscriptionId);
    const result = await client.servers.beginDeleteAndWait(resourceGroupName, serverName);
    console.log(result);
  }
  
  serverDelete().catch(console.error);
  