DeletingMultipleObjectsUsingPHPSDK
Deleting Multiple Objects Using the AWS SDK for PHP
This topic shows how to use classes from version 3 of the AWS SDK for PHP to delete multiple objects from versioned and non-versioned Amazon S3 buckets. For more information about versioning, see Using Versioning.
This topic assumes that you are already following the instructions for Using the AWS SDK for PHP and Running PHP Examples and have the AWS SDK for PHP properly installed.
Example Deleting Multiple Objects from a Non-Versioned Bucket
The following PHP example uses the deleteObjects()
method to delete multiple objects from a bucket that is not version-enabled.
For information about running the PHP examples in this guide, see Running PHP Examples.
Example Deleting Multiple Objects from a Version-enabled Bucket
The following PHP example uses the deleteObjects()
method to delete multiple objects from a version-enabled bucket.
For information about running the PHP examples in this guide, see Running PHP Examples.