/// <summary>
 /// The Delete Media Services Account operation deletes an existing
 /// media services account in Windows Azure.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/dn194273.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.MediaServices.IAccountOperations.
 /// </param>
 /// <param name='accountName'>
 /// The name of the media services account.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static OperationResponse Delete(this IAccountOperations operations, string accountName)
 {
     try
     {
         return(operations.DeleteAsync(accountName).Result);
     }
     catch (AggregateException ex)
     {
         if (ex.InnerExceptions.Count > 1)
         {
             throw;
         }
         else
         {
             throw ex.InnerException;
         }
     }
 }
 /// <summary>
 /// The Delete Media Services Account operation deletes an existing
 /// media services account in Windows Azure.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/dn194273.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.MediaServices.IAccountOperations.
 /// </param>
 /// <param name='accountName'>
 /// Required. The name of the media services account.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static Task <AzureOperationResponse> DeleteAsync(this IAccountOperations operations, string accountName)
 {
     return(operations.DeleteAsync(accountName, CancellationToken.None));
 }
 /// <summary>
 /// The Delete operation deletes an existing Batch account. The
 /// operation will return NoContent if the requested account does not
 /// exist.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Batch.IAccountOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group that contains the Batch
 /// account.
 /// </param>
 /// <param name='accountName'>
 /// Required. The name of the account to be deleted.
 /// </param>
 /// <returns>
 /// A standard service response for long running operations.
 /// </returns>
 public static Task <LongRunningOperationResponse> DeleteAsync(this IAccountOperations operations, string resourceGroupName, string accountName)
 {
     return(operations.DeleteAsync(resourceGroupName, accountName, CancellationToken.None));
 }