18.4 Ubuntu Linode CLI Storage


linode-cli object-storage cancel
linode-cli obj ls
2023-01-02 07:27  cloud-dev-app-net-2
2023-01-02 07:26  cloud-app-net-2
linode-cli obj du
3.29 MB     36 objects  cloud-dev-app-net-2
13.81 GB    11764 objects  cloud-app-net-2
13.82 GB Total

Delete a bucket

Install the s3cmd

pip install s3cmd

Configure the s3cmd

s3cmd --configure

Configuration: Access Key; Secret Key; US; S3 Endpoint https://ap-south-1.linodeobjects.com; DNS-style %(bucket)s.ap-south-1.linodeobjects.com; Encryption ; GPG ; HTTPS Yes; HTTP Proxy . No test.

Edit ~/.s3cfg to set website_endpoint: http://%(bucket)s.website-ap-south-1.linodeobjects.com/,


s3cmd ls
2023-01-02 07:27  s3://cloud-dev-app-net-2
2023-01-02 07:26  s3://cloud-app-net-2
s3cmd rb s3://cloud-dev-app-net-2
ERROR: S3 error: 409 (BucketNotEmpty)

Force removal (be sure):

s3cmd rb -r -f s3://cloud-dev-app-net-2
WARNING: Bucket is not empty. Removing all the objects from it first. This may take some time...
delete: 's3://cloud-dev-app-net-2/urn:oid:103'
delete: 's3://cloud-dev-app-net-2/urn:oid:104'
delete: 's3://cloud-dev-app-net-2/urn:oid:105'
Bucket 's3://cloud-dev-app-net-2/' removed

Your donation will support ongoing availability and give you access to the PDF version of this book. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Popular open source software includes rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984. Copyright © 1995-2022 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0