aws-s3-rm
Delete S3 objects. tldr-pages
On several platforms
Several platforms
Delete a specific S3 object
aws s3 rm s3://bucket_name/path/to/fileIdentifySimulate the deletion of a specific S3 object without deleting it
aws s3 rm s3://bucket_name/path/to/file --dryrunIdentify--dryrunDisplays the operations that would be performed using the specified command without actually running them. AWS CLI referenceDelete an object from a specific S3 access point
aws s3 rm s3://arn:aws:s3:region:account_id:access_point/access_point_name/object_keyIdentifyRemove all objects from a bucket (empty the bucket)
aws s3 rm s3://bucket_name --recursiveIdentify--recursiveCommand is performed on all files or objects under the specified directory or prefix. AWS CLI reference