Delete a single object by key.
Section: S3API Object Commands
Delete an object with s3api
bash
bash
aws s3api delete-object --bucket my-bucket --key tmp/file.txtExplanation
Useful in scripts that already use low-level S3 API commands.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing S3API Object Commands
Upload an object with s3api
Put a single object using low-level API options.
Delete a specific object version
Remove one version from a versioned bucket.