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

*********************************************
batch_delete_bill_scenario_usage_modification
*********************************************



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

  

  Delete usage that you have created in a Bill Scenario. 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 `BatchUpdateBillScenarioUsageModification <https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_AWSBCMPricingCalculator_BatchUpdateBillScenarioUsageModification.html>`__.

   

  .. note::

    

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

    

  

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


  **Request Syntax**
  ::

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

    The ID of the Bill Scenario 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 Bill Scenario.

    

  
    - *(string) --* 

    

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

    
    ::

      {
          'errors': [
              {
                  'id': 'string',
                  'errorMessage': 'string',
                  'errorCode': 'BAD_REQUEST'|'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 Bill Scenario.

        
        

        - *(dict) --* 

          Represents an error that occurred when deleting usage in a Bill Scenario.

          
          

          - **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.ConflictException`

  
  *   :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`

  