Examples (5)
Delete a specific S3 object
aws s3 rm s3://bucket_name/path/to/filePreview the deletion of a specific S3 object without deleting it (dry-run)
aws s3 rm s3://bucket_name/path/to/file --dryrunDelete an object from a specific S3 access point
aws s3 rm s3://arn:aws:s3:region:account_id:access_point/access_point_name/object_keyRemove all objects from a bucket (empty the bucket)
aws s3 rm s3://bucket_name --recursivemade by @shridhargupta | data from tldr-pages