Delete a folder from an s3 bucket - aws cli

0 votes
How do I delete a bucket from an s3 bucket using aws cli? What is the command?
Aug 23 in AWS by Harsha
72 views

1 answer to this question.

0 votes

Use the following CLI command to delete a folder from an S3 bucket:

$ aws s3 rm s3://bucket/folder --recursive

--recursive is useful when you need to delete all the subfolders as well.

answered Aug 23 by Parth

Related Questions In AWS

0 votes
1 answer
0 votes
1 answer

How to download the latest file in a S3 bucket using AWS CLI?

You can use the below command $ aws ...READ MORE

answered Sep 6, 2018 in AWS by Archana
• 4,090 points
3,801 views
0 votes
1 answer

AWS S3 uploading hidden files by default

versioning is enabled in your bucket. docs.aws.amazon.com/AmazonS3/latest/user-guide/….... the ...READ MORE

answered Oct 4, 2018 in AWS by Priyaj
• 56,540 points
231 views
0 votes
1 answer

How to decrypt the encrypted S3 file using aws-encryption-cli --decrypt

Use command : aws s3 presign s3://mybucket/abc_count.png you get ...READ MORE

answered Oct 22, 2018 in AWS by Priyaj
• 56,540 points
456 views
0 votes
1 answer

Import my AWS credentials using python script

Using AWS Cli  Configure your IAM user then ...READ MORE

answered Nov 16, 2018 in AWS by Jino
• 5,560 points
310 views
0 votes
2 answers