Graphon API

S3 · Objects

DeleteObjects

POST/{bucket}?delete

Deletes 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.

View as Markdown
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

bucketstringrequired

The bucket name.

Query parameters

deleteflagrequired

Selects this operation. Send it with no value.

Headers

The workspace ID that must own the bucket. Another owner returns 403 AccessDenied.

Request body

Deleteobjectrequired

The root element.

Quietbooleanoptional

Send true to return only the errors.

Default: false

Objectarrayrequired

One element for each key, up to 1,000.

Responses

200OK

The result for each key. Check the Error elements, because the status is 200 even when keys fail.

application/xml

DeleteResultobjectrequired

The root element.

Deletedarray

One element for each deleted key. Quiet mode leaves it out.

Errorarray

One element for each key that failed.

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.

Was this page helpful?