delete_upload

delete_upload(**kwargs)

Deletes an upload given the upload ARN.

See also: AWS API Documentation

Request Syntax

response = client.delete_upload(
    arn='string'
)
Parameters
arn (string) --

[REQUIRED]

Represents the Amazon Resource Name (ARN) of the Device Farm upload to delete.

Return type
dict
Returns
Response Syntax
{}

Response Structure

  • (dict) --

    Represents the result of a delete upload request.

Exceptions

  • DeviceFarm.Client.exceptions.ArgumentException
  • DeviceFarm.Client.exceptions.NotFoundException
  • DeviceFarm.Client.exceptions.LimitExceededException
  • DeviceFarm.Client.exceptions.ServiceAccountException

Examples

The following example deletes a specific upload.

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

print(response)

Expected Output:

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