async beginDeleteKey(name, options = {}) {
        const poller = new DeleteKeyPoller({
            name,
            vaultUrl: this.vaultUrl,
            client: this.client,
            intervalInMs: options.intervalInMs,
            resumeFrom: options.resumeFrom,
            operationOptions: options
        });
        // This will initialize the poller's operation (the deletion of the key).
        await poller.poll();
        return poller;
    }
/**
     * The delete operation applies to any key stored in Azure Key Vault. Individual versions
     * of a key can not be deleted, only all versions of a given key at once.
     *
     * This function returns a Long Running Operation poller that allows you to wait indefinitely until the key is deleted.
     *
     * This operation requires the keys/delete permission.
     *
     * Example usage:
     * ```ts
     * const client = new KeyClient(url, credentials);
     * await client.createKey("MyKey", "EC");
     * const poller = await client.beginDeleteKey("MyKey");
     *
     * // Serializing the poller
     * const serialized = poller.toString();
     * // A new poller can be created with:
     * // await client.beginDeleteKey("MyKey", { resumeFrom: serialized });
     *
     * // Waiting until it's done
     * const deletedKey = await poller.pollUntilDone();
     * console.log(deletedKey);
     * ```
     * Deletes a key from a specified key vault.
     * @param name - The name of the key.
     * @param options - The optional parameters.
     */
The delete operation applies to any key stored in Azure Key Vault. Individual versions
of a key can not be deleted, only all versions of a given key at once.

This function returns a Long Running Operation poller that allows you to wait indefinitely until the key is deleted.

This operation requires the keys/delete permission.



Serializing the poller
const serialized = poller.toString();
A new poller can be created with:
await client.beginDeleteKey("MyKey", { resumeFrom: serialized }).

Waiting until it's done
const deletedKey = await poller.pollUntilDone();
console.log(deletedKey);
```
Deletes a key from a specified key vault.
@param name - The name of the key.
@param options - The optional parameters.
The delete operation applies to any key stored in Azure Key Vault . Individual versions of a key can not be deleted only all versions of a given key at once . This function returns a Long Running Operation poller that allows you to wait indefinitely until the key is deleted . This operation requires the keys / delete permission . Serializing the poller const serialized = poller . toString () ; A new poller can be created with : await client . beginDeleteKey ( " MyKey " { resumeFrom : serialized } ) . Waiting until it ' s done const deletedKey = await poller . pollUntilDone () ; console . log ( deletedKey ) ; ` ` ` Deletes a key from a specified key vault . @param name - The name of the key . @param options - The optional parameters .
async beginDeleteKey(name, options = {}) {
        const poller = new DeleteKeyPoller({
            name,
            vaultUrl: this.vaultUrl,
            client: this.client,
            intervalInMs: options.intervalInMs,
            resumeFrom: options.resumeFrom,
            operationOptions: options
        });
        await poller.poll();
        return poller;
    }
async beginDeleteKey ( name , options = { } ) { const poller = new DeleteKeyPoller ( { name , vaultUrl : this . vaultUrl , client : this . client , intervalInMs : options . intervalInMs , resumeFrom : options . resumeFrom , operationOptions : options } ) ; await poller . poll ( ) ; return poller ; }
The delete operation applies to any key stored in Azure Key Vault.
The delete operation applies to any key stored in Azure Key Vault .
// This will initialize the poller's operation (the deletion of the key).