:doc:`BillingandCostManagementPricingCalculator <../../bcm-pricing-calculator>` / Client / batch_delete_workload_estimate_usage

************************************
batch_delete_workload_estimate_usage
************************************



.. py:method:: BillingandCostManagementPricingCalculator.Client.batch_delete_workload_estimate_usage(**kwargs)

  

  Delete usage that you have created in a Workload estimate. You can only delete usage that you had added and cannot model deletion (or removal) of a existing usage. If you want model removal of an existing usage, see `BatchUpdateWorkloadEstimateUsage <https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_AWSBCMPricingCalculator_BatchUpdateWorkloadEstimateUsage.html>`__.

   

  .. note::

    

    The ``BatchDeleteWorkloadEstimateUsage`` operation doesn't have its own IAM permission. To authorize this operation for Amazon Web Services principals, include the permission ``bcm-pricing-calculator:DeleteWorkloadEstimateUsage`` in your policies.

    

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/bcm-pricing-calculator-2024-06-19/BatchDeleteWorkloadEstimateUsage>`_  


  **Request Syntax**
  ::

    response = client.batch_delete_workload_estimate_usage(
        workloadEstimateId='string',
        ids=[
            'string',
        ]
    )
    
  :type workloadEstimateId: string
  :param workloadEstimateId: **[REQUIRED]** 

    The ID of the Workload estimate for which you want to delete the modeled usage.

    

  
  :type ids: list
  :param ids: **[REQUIRED]** 

    List of usage that you want to delete from the Workload estimate.

    

  
    - *(string) --* 

    

  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'errors': [
              {
                  'id': 'string',
                  'errorMessage': 'string',
                  'errorCode': 'BAD_REQUEST'|'NOT_FOUND'|'CONFLICT'|'INTERNAL_SERVER_ERROR'
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **errors** *(list) --* 

        Returns the list of errors reason and the usage item keys that cannot be deleted from the Workload estimate.

        
        

        - *(dict) --* 

          Represents an error that occurred when deleting usage in a workload estimate.

          
          

          - **id** *(string) --* 

            The ID of the error.

            
          

          - **errorMessage** *(string) --* 

            The message that describes the error.

            
          

          - **errorCode** *(string) --* 

            The code associated with the error.

            
      
    
  
  **Exceptions**
  
  *   :py:class:`BillingandCostManagementPricingCalculator.Client.exceptions.ValidationException`

  
  *   :py:class:`BillingandCostManagementPricingCalculator.Client.exceptions.DataUnavailableException`

  
  *   :py:class:`BillingandCostManagementPricingCalculator.Client.exceptions.ServiceQuotaExceededException`

  
  *   :py:class:`BillingandCostManagementPricingCalculator.Client.exceptions.InternalServerException`

  
  *   :py:class:`BillingandCostManagementPricingCalculator.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`BillingandCostManagementPricingCalculator.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`BillingandCostManagementPricingCalculator.Client.exceptions.ThrottlingException`

  