:doc:`AuditManager <../../auditmanager>` / Client / batch_delete_delegation_by_assessment

*************************************
batch_delete_delegation_by_assessment
*************************************



.. py:method:: AuditManager.Client.batch_delete_delegation_by_assessment(**kwargs)

  

  Deletes a batch of delegations for an assessment in Audit Manager.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/auditmanager-2017-07-25/BatchDeleteDelegationByAssessment>`_  


  **Request Syntax**
  ::

    response = client.batch_delete_delegation_by_assessment(
        delegationIds=[
            'string',
        ],
        assessmentId='string'
    )
    
  :type delegationIds: list
  :param delegationIds: **[REQUIRED]** 

    The identifiers for the delegations.

    

  
    - *(string) --* 

    

  :type assessmentId: string
  :param assessmentId: **[REQUIRED]** 

    The identifier for the assessment.

    

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

    
    ::

      {
          'errors': [
              {
                  'delegationId': 'string',
                  'errorCode': 'string',
                  'errorMessage': 'string'
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

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

        A list of errors that the ``BatchDeleteDelegationByAssessment`` API returned.

        
        

        - *(dict) --* 

          An error entity for the ``BatchDeleteDelegationByAssessment`` API. This is used to provide more meaningful errors than a simple string message.

          
          

          - **delegationId** *(string) --* 

            The identifier for the delegation.

            
          

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

            The error code that the ``BatchDeleteDelegationByAssessment`` API returned.

            
          

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

            The error message that the ``BatchDeleteDelegationByAssessment`` API returned.

            
      
    
  
  **Exceptions**
  
  *   :py:class:`AuditManager.Client.exceptions.ResourceNotFoundException`

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

  
  *   :py:class:`AuditManager.Client.exceptions.ValidationException`

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

  