Forrest logo
back to the aws tool

aws-s3-rm:tldr:35b94

aws-s3-rm: 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}
try on your machine

The given command is used to remove (delete) an object residing inside an Amazon S3 access point.

Here is the breakdown of each component in the command:

  • aws s3: This is the command to interact with Amazon S3 from the AWS Command Line Interface (CLI).
  • rm: This is the abbreviation for "remove", which means deleting the specified object.
  • s3://arn:aws:s3:${region}:${account_id}:${access_point}/${access_point_name}/${object_key}: This is the argument specifying the full path of the object to be deleted. It consists of:
    • s3://: The S3 protocol prefix.
    • arn:aws:s3:: The ARN (Amazon Resource Name) scheme for S3.
    • ${region}: This part should be replaced with the desired AWS region (e.g., us-west-2, eu-central-1).
    • ${account_id}: This part should be replaced with your AWS account ID.
    • ${access_point}: This part should be replaced with "accesspoint".
    • ${access_point_name}: This part should be replaced with the name of the specific access point created in your S3 bucket.
    • ${object_key}: This part should be replaced with the key/path of the object you want to delete within the access point.

Note: Make sure you have the necessary permission to delete the object within the access point.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the aws tool