aws s3api delete-object
Removes an object from a bucket. AWS CLI reference
10 options Its page in the AWS CLI reference
Options
--bucketThe bucket name of the bucket containing the object.--bypass-governance-retentionIndicates whether S3 Object Lock should bypass Governance-mode restrictions to process this operation.--expected-bucket-ownerThe account ID of the expected bucket owner.--if-match-last-modified-timeIf present, the object is deleted only if its modification times matches the provided Timestamp.--if-match-sizeIf present, the object is deleted only if its size matches the provided size in bytes.--if-matchDeletes the object if the ETag (entity tag) value provided during the delete operation matches the ETag of the object in S3.--keyKey name of the object to delete.--mfaThe concatenation of the authentication device's serial number, a space, and the value that is displayed on your authentication device.--request-payerConfirms that the requester knows that they will be charged for the request.--version-idVersion ID used to reference a specific version of the object.