HEX
Server: LiteSpeed
System: Linux ip-172-31-76-142.ec2.internal 4.14.158-129.185.amzn2.x86_64 #1 SMP Tue Dec 24 03:15:32 UTC 2019 x86_64
User: 69b4844ae61d4e92bf26ad98af552775 (1065)
PHP: 7.2.27
Disabled: exec,passthru,shell_exec,system,eval
Upload Files
File: //lib/python2.7/site-packages/awscli/examples/s3/rb.rst
The following ``rb`` command removes a bucket.  In this example, the user's bucket is ``mybucket``.  Note that the bucket must be empty in order to remove::

    aws s3 rb s3://mybucket

Output::

    remove_bucket: mybucket

The following ``rb`` command uses the ``--force`` parameter to first remove all of the objects in the bucket and then
remove the bucket itself.  In this example, the user's bucket is ``mybucket`` and the objects in ``mybucket`` are
``test1.txt`` and ``test2.txt``::

    aws s3 rb s3://mybucket --force

Output::

    delete: s3://mybucket/test1.txt
    delete: s3://mybucket/test2.txt
    remove_bucket: mybucket