NOTE: For Version 3 of the AWS SDK for PHP, please see the V3 User Guide and V3 API Reference.

# Class DeleteObjectsTransfer

Transfer logic for deleting multiple objects from an Amazon S3 bucket in a single request

  Aws\S3\Model\DeleteObjectsTransfer implements Guzzle\Batch\BatchTransferInterface

Namespace: Aws\S3\Model
Located at Aws/S3/Model/DeleteObjectsTransfer.php

## Methods summary

- `public` `__construct ( Aws\Common\Client\AwsClientInterface $client, string $bucket, string $mfa = null )`

  Constructs a transfer using the injected client

- `public` `setMfa ( string $token )`

  Set a new MFA token value

- `public` `transfer ( array $batch )`

  Transfer an array of items

- `protected` `processResponse ( Guzzle\Service\Command\CommandInterface $command )`

  Process the response of the DeleteMultipleObjects request

## Methods detail

# `public`
`__construct( `Aws\Common\Client\AwsClientInterface` $client, string $bucket, string $mfa = null )`

Constructs a transfer using the injected client

#### Parameters

$client
  ``Aws\Common\Client\AwsClientInterface``
  $client Client used to transfer the requests
$bucket
  `string`
  $bucket Name of the bucket that stores the objects
$mfa
  `string`
  $mfa MFA token used when contacting the Amazon S3 API

# `public mixed`
`setMfa( string $token )`

Set a new MFA token value

#### Parameters

$token
  `string`
  $token MFA token

#### Returns

`mixed`
$this
# `public`
`transfer( array $batch )`

Transfer an array of items

#### Parameters

$batch
  `array`
  $batch Array of items to transfer

#### Throws

``Aws\Common\Exception\OverflowException``
if a batch has more than 1000 items
``Aws\S3\Exception\InvalidArgumentException``
when an invalid batch item is encountered

#### Implementation of

`Guzzle\Batch\BatchTransferInterface::transfer()`
# `protected`
`processResponse( `Guzzle\Service\Command\CommandInterface` $command )`

Process the response of the DeleteMultipleObjects request

#### ParamCommandInterface

$command Command executed

### Magic methods summary

## Properties summary

`protected `Aws\Common\Client\AwsClientInterface`` | $client | # The Amazon S3 client for doing transfers
`protected string` | $bucket | # Bucket from which to delete the objects
`protected string` | $mfa | # MFA token to apply to the request