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
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
_concepts.rst | File | 7.65 KB | 0644 |
|
cp.rst | File | 6.45 KB | 0644 |
|
ls.rst | File | 3.53 KB | 0644 |
|
mb.rst | File | 535 B | 0644 |
|
mv.rst | File | 3.13 KB | 0644 |
|
presign.rst | File | 1.42 KB | 0644 |
|
rb.rst | File | 641 B | 0644 |
|
rm.rst | File | 1.67 KB | 0644 |
|
sync.rst | File | 5.67 KB | 0644 |
|
website.rst | File | 883 B | 0644 |
|