:doc:`GuardDuty <../../guardduty>` / Client / delete_invitations

******************
delete_invitations
******************



.. py:method:: GuardDuty.Client.delete_invitations(**kwargs)

  

  Deletes invitations sent to the current member account by Amazon Web Services accounts specified by their account IDs.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/DeleteInvitations>`_  


  **Request Syntax**
  ::

    response = client.delete_invitations(
        AccountIds=[
            'string',
        ]
    )
    
  :type AccountIds: list
  :param AccountIds: **[REQUIRED]** 

    A list of account IDs of the Amazon Web Services accounts that sent invitations to the current member account that you want to delete invitations from.

    

  
    - *(string) --* 

    

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

    
    ::

      {
          'UnprocessedAccounts': [
              {
                  'AccountId': 'string',
                  'Result': 'string'
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **UnprocessedAccounts** *(list) --* 

        A list of objects that contain the unprocessed account and a result string that explains why it was unprocessed.

        
        

        - *(dict) --* 

          Contains information about the accounts that weren't processed.

          
          

          - **AccountId** *(string) --* 

            The Amazon Web Services account ID.

            
          

          - **Result** *(string) --* 

            A reason why the account hasn't been processed.

            
      
    
  
  **Exceptions**
  
  *   :py:class:`GuardDuty.Client.exceptions.BadRequestException`

  
  *   :py:class:`GuardDuty.Client.exceptions.InternalServerErrorException`

  