From e33aff10d7b22ad46bafc8c7339a5f5f493f3e50 Mon Sep 17 00:00:00 2001 From: Sherman Hui <11592023+shermanhui@users.noreply.github.com> Date: Fri, 21 Oct 2022 09:08:20 -0700 Subject: [PATCH] aws-s3-rm: add page (#9218) --- pages/common/aws-s3-rm.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pages/common/aws-s3-rm.md diff --git a/pages/common/aws-s3-rm.md b/pages/common/aws-s3-rm.md new file mode 100644 index 000000000..f0e621505 --- /dev/null +++ b/pages/common/aws-s3-rm.md @@ -0,0 +1,20 @@ +# aws s3 rm + +> Delete S3 objects. +> More information: . + +- Delete a specific S3 object: + +`aws s3 rm s3://{{bucket_name}}/{{path/to/file}}` + +- Preview the deletion of a specific S3 object without deleting it (dry-run): + +`aws s3 rm s3://{{bucket_name}}/{{path/to/file}} --dryrun` + +- Delete an object from a specific S3 access point: + +`aws s3 rm s3://arn:aws:s3:{{region}}:{{account_id}}:{{access_point}}/{{access_point_name}}/{{object_key}}` + +- Display help: + +`aws s3 rm help`