S3 · Objects
DeleteObjects
/{bucket}?deleteDeletes up to 1,000 objects in one request.
Each key gets its own result. A key that fails does not stop the others. An Object with a VersionId removes that version for good. Without a VersionId, storage removes the object. In a bucket with versioning on, it adds a delete marker and keeps the versions.
- Role
- Editor or higher
- Support
- Supported
- Up to 1,000 keys. Each key gets its own result. A VersionId removes that version. Quiet mode works.
- A key with no object comes back as an Error with the code
NoSuchKey. - Storage does not need Content-MD5.
Path parameters
The bucket name.
Query parameters
Selects this operation. Send it with no value.
Headers
The workspace ID that must own the bucket. Another owner returns 403 AccessDenied.
Request body
Responses
200OK
The result for each key. Check the Error elements, because the status is 200 even when keys fail.
application/xml
The root element.
Errors
Select an error in the response example to see its XML body. Any request can also get the common errors, such as SignatureDoesNotMatch.
- 404NoSuchBucket
No bucket has this name, or the bucket was deleted.
What to do: Check the bucket name. ListBuckets shows the buckets of the workspace.
- 403AccessDenied
The key does not have the role for this operation, or the bucket is in another workspace.
What to do: Use a key of the workspace that owns the bucket, with the role above.