delete_device_pool

DeviceFarm.Client.delete_device_pool(**kwargs)

Deletes a device pool given the pool ARN. Does not allow deletion of curated pools owned by the system.

See also: AWS API Documentation

Request Syntax

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

[REQUIRED]

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

Return type
dict
Returns
Response Syntax
{}

Response Structure

  • (dict) --

    Represents the result of a delete device pool 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 device pool.

response = client.delete_device_pool(
    # You can get the device pool ARN by using the list-device-pools CLI command.
    arn='arn:aws:devicefarm:us-west-2::devicepool:123-456-EXAMPLE-GUID',
)

print(response)

Expected Output:

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