Comments (3)
With 3b896fe being released, it is now easier to delete multiple resources at once.
I propose to let this feature request open and wait until enough user have expressed their interest to reconsider the implementation of such feature.
from cli.
@apricote Do we want to implement it? If yes, I can give it an attempt.
I'm not very familiar with the code here so if you think that this will be not be possible to implement or requires some big refactoring then please let me know.
from cli.
I'm not sure if it is a good idea to add this to the CLI, as this command is very dangerous and probably not that often used. Also it's not clear what should be deleted. All resources, even the free ones (like SSH Keys, Placement Groups and Firewalls)? Or only paid resources? How are protected resources handled? What about deletion order (Volumes might be attached to servers etc.)? Maybe we can get a third opinion on this.
For now I'd suggest a solution like this:
hcloud server list -o=noheader -o=columns=name | xargs -L1 -I{} hcloud server delete {}
from cli.
Related Issues (20)
- rdns settings not propagated if set using hcloud-cli HOT 1
- mitchellh/gon is unmaintained, consider moving to bearer/gon HOT 2
- FR: move snapshots HOT 1
- Make firewall describe JSON output compatible with firewall create or replace-rules rules-file expected input HOT 1
- firewall --rules-file does not accept firewall/get output HOT 2
- Add the project name to the hcloud cmd "all" HOT 2
- Improve error message when required argument is not set HOT 2
- Primary IP assignee ID is null in API response but 0 in JSON output HOT 1
- Update Loadbalancer SSL Certificate HOT 4
- Improve commands help messages
- Please enable yaml output for server reset-password HOT 6
- Adding firewall rule fails with version v1.43.0 HOT 3
- enabling rescue mode using CLI HOT 1
- alias lb for load-balancer HOT 2
- hcloud server ssh <server> [command] is broken HOT 1
- `--port` option is missing from usage of the `firewall {add,delete}-rule` commands HOT 2
- Allow to set health check options in `hcloud load-balancer add-service`
- Example firewall rules json doesn't work HOT 1
- Load-Balancer: Assign Targets using labels does not seem to work HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cli.