/// <summary>
 /// Delete a domain.
 /// </summary>
 /// <remarks>
 /// Delete existing domain.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group within the user's subscription.
 /// </param>
 /// <param name='domainName'>
 /// Name of the domain.
 /// </param>
 public static void Delete(this IDomainsOperations operations, string resourceGroupName, string domainName)
 {
     operations.DeleteAsync(resourceGroupName, domainName).GetAwaiter().GetResult();
 }
 /// <summary>
 /// Delete a domain.
 /// </summary>
 /// <remarks>
 /// Delete a domain.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of the resource group to which the resource belongs.
 /// </param>
 /// <param name='domainName'>
 /// Name of the domain.
 /// </param>
 /// <param name='forceHardDeleteDomain'>
 /// Specify &lt;code&gt;true&lt;/code&gt; to delete the domain immediately. The
 /// default is &lt;code&gt;false&lt;/code&gt; which deletes the domain after 24
 /// hours.
 /// </param>
 public static void Delete(this IDomainsOperations operations, string resourceGroupName, string domainName, bool?forceHardDeleteDomain = default(bool?))
 {
     operations.DeleteAsync(resourceGroupName, domainName, forceHardDeleteDomain).GetAwaiter().GetResult();
 }