Deleting multiple objects per request - Amazon Simple Storage Service

This guide is no longer being updated. For current information and instructions, see the new Amazon S3 User Guide.

Deleting multiple objects per request

Amazon S3 provides the Multi-Object Delete API (see Delete - Multi-Object Delete), which enables you to delete multiple objects in a single request. The API supports two modes for the response: verbose and quiet. By default, the operation uses verbose mode. In verbose mode, the response includes the result of the deletion of each key that is specified in your request. In quiet mode, the response includes only keys for which the delete operation encountered an error. If all keys are successfully deleted when you're using quiet mode, Amazon S3 returns an empty response.

To learn more about object deletion, see Deleting objects.

You can use the REST API directly or use the AWS SDKs.