Skip to main content

delete-object

The aws s3api delete-object command is used for deleting objects in S3. It allows you to delete an object from an Astran S3 Bucket.

Syntax

aws s3api delete-object \
--bucket bucketname \
--key path/to/object

Options

  • bucket: The name of the S3 bucket from which the object will be deleted.
  • key: The key for the object in the S3 bucket to be deleted.

  • --version-id: To specify the version ID of the specific version of the object to be deleted.

See also the original AWS documentation.