Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow multiple bucket / object deletion #235

Closed
maclsd opened this issue Jul 6, 2022 · 1 comment
Closed

Allow multiple bucket / object deletion #235

maclsd opened this issue Jul 6, 2022 · 1 comment

Comments

@maclsd
Copy link

maclsd commented Jul 6, 2022

I'd like to be able to delete several buckets with one command, like how several k3s clusters can be removed with one command:

Example:

civo@krew:/civo/cli/dest$ ./civo_linux objectstore ls
+--------+-----------+------+---------------------------+--------+
| ID     | Name      | Size | Object Store Endpoint     | Status |
+--------+-----------+------+---------------------------+--------+
| 54bbdc | bucketone | 500G | objectstore.lon1.civo.com | ready  |
| 5391a8 | bucketwo  | 500G | objectstore.lon1.civo.com | ready  |
+--------+-----------+------+---------------------------+--------+

and then one command:

civo@krew:/civo/cli/dest$ ./civo_linux objectstore delete bucketone buckettwo
Warning: Are you sure you want to delete the bucketone objectStore (y/N) ? y
The objectStore (bucketone) has been deleted

but in this case, only the first one was deleted

civo@krew:/civo/cli/dest$ ./civo_linux objectstore ls
+--------+----------+------+---------------------------+--------+
| ID     | Name     | Size | Object Store Endpoint     | Status |
+--------+----------+------+---------------------------+--------+
| 5391a8 | bucketwo | 500G | objectstore.lon1.civo.com | ready  |
+--------+----------+------+---------------------------+--------+
@maclsd
Copy link
Author

maclsd commented Jul 6, 2022

Hmm. actually this already works.
Helps if I don't make a typo when deleting

civo@krew:/civo/cli/dest$ ./civo_linux objectstore create bucket1
Creating Object Store bucket1 in LON1


civo@krew:/civo/cli/dest$ ./civo_linux objectstore create bucket2
Creating Object Store bucket2 in LON1
To check the status of the Object Store run: civo objectstore show bucket2

civo@krew:/civo/cli/dest$ ./civo_linux objectstore ls
+--------+---------+------+---------------------------+--------+
| ID     | Name    | Size | Object Store Endpoint     | Status |
+--------+---------+------+---------------------------+--------+
| 14e213 | bucket1 | 500G | objectstore.lon1.civo.com | ready  |
| e731d6 | bucket2 | 500G | objectstore.lon1.civo.com | ready  |
civo@krew:/civo/cli/dest$ ./civo_linux objectstore delete bucket1 bucket2
Warning: Are you sure you want to delete the bucket1, bucket2 objectStores (y/N) ? y
The objectStores (bucket1, bucket2) has been deleted
civo@krew:/civo/cli/dest$ 

@maclsd maclsd closed this as completed Jul 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant