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

**********
delete_run
**********



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

  

  Deletes the run, given the run ARN. You cannot delete a run 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/DeleteRun>`_  


  **Request Syntax**
  ::

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

    The Amazon Resource Name (ARN) for the run to delete.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 

      Represents the result of a delete run request.

      
  
  **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 test run.
  ::

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

  
  Expected Output:
  ::

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

  