Delete a specific S3 object

aws s3 rm

  • Delete S3 objects.
    More information: <https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3/rm.html>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

aws s3 rm s3://{{bucket_name}}/{{path/to/file}}

click the source code to copy install aws s3 rm on any operating system with command-not-found.com