Check out example codes for "aws s3 rm". It will help you in understanding the concepts better.

Code Example 1

aws s3 rm --recursive s3://your_bucket_name/foo/

Learn ReactJs, React Native from akashmittal.com