AWS S3

Delete object

Remove the null version (if there is one) of an object and insert a delete marker. If there isn’t a null version, Amazon S3 does not remove any objects but still responds that the command was successful.

Inputs

Field

Type

Description

region [required]

enum

default: us-east-1

bucket [required]

string

Bucket name of the object to delete.

key [required]

string

Key name of the object to delete.

versionId

string

expectedBucketOwner

string

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request fails with an HTTP 403 (Access Denied) error.

Outputs

Field

Type

Description

deleteMarker

boolean

Indicates whether the specified object version that was permanently deleted was (true) or was not (false) a delete marker before deletion. In a simple DELETE, this header indicates whether (true) or not (false) the current version of the object is a delete marker. This functionality is not supported for directory buckets.

versionId

string

Returns the version ID of the delete marker created as a result of the DELETE operation. This functionality is not supported for directory buckets.

amzRequestId [required]

string