:doc:`DeviceFarm <../../devicefarm>` / Client / delete_remote_access_session

****************************
delete_remote_access_session
****************************



.. py:method:: DeviceFarm.Client.delete_remote_access_session(**kwargs)

  

  Deletes a completed remote access session and its results. You cannot delete a remote access session if it is still active.

   

  .. warning::

     

    You cannot undo this operation.

    

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/DeleteRemoteAccessSession>`_  


  **Request Syntax**
  ::

    response = client.delete_remote_access_session(
        arn='string'
    )
    
  :type arn: string
  :param arn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the session for which you want to delete remote access.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 

      The response from the server when a request is made to delete the remote access session.

      
  
  **Exceptions**
  
  *   :py:class:`DeviceFarm.Client.exceptions.ArgumentException`

  
  *   :py:class:`DeviceFarm.Client.exceptions.NotFoundException`

  
  *   :py:class:`DeviceFarm.Client.exceptions.LimitExceededException`

  
  *   :py:class:`DeviceFarm.Client.exceptions.ServiceAccountException`

  

  **Examples**

  The following example deletes a specific remote access session.
  ::

    response = client.delete_remote_access_session(
        # You can get the remote access session ARN by using the list-remote-access-sessions CLI command.
        arn='arn:aws:devicefarm:us-west-2:123456789101:session:EXAMPLE-GUID-123-456',
    )
    
    print(response)

  
  Expected Output:
  ::

    {
        'ResponseMetadata': {
            '...': '...',
        },
    }

  