torus-cli icon indicating copy to clipboard operation
torus-cli copied to clipboard

Delete project or service

Open brettneese opened this issue 8 years ago • 4 comments

Is it not yet possible to delete projects or services? torus project delete (etc) does nothing, and the help only shows list and create actions.

I didn't realize there was a hierarchy of projects containing services, so now I have a few extra projects lying around that should really be services.

brettneese avatar Nov 17 '16 22:11 brettneese

Correct, it is not yet possible to remove a project.

We have to decide a proper course of action for the secrets found in the hierarchy beneath that project (whether they're all destroyed, perhaps a migration mechanism, etc), then we should be able to introduce this.

jeffandersen avatar Nov 18 '16 00:11 jeffandersen

@brettneese your feedback would be awesome: would you expect the secrets you've stored under those projects or services to also be removed? What if you've shared a secret between two projects or services (e.g. I shared a token with the auth and payment service, then I delete the auth service)?

I've added this issue to our backlog, as soon as we understand the right behaviour we can begin implementing.

ianlivingstone avatar Nov 18 '16 14:11 ianlivingstone

I would probably expect them to also be removed, yeah. With some sort of confirmation of course: "here's what you're deleting, type the service/project name to continue."

I'm not sure if there's a way yet to set multiple key/value pairs at once, but a quick and easy way to solve this problem entirely would be that if I wanted them somewhere else it would be nice to just copy and paste them from this confirmation into a new command specifying myself where I want to move them.

I wouldn't expect deleting one service to affect any other services, or if that would be necessary, I would expect the option to either remove them both or keep them in place for one while deleting the other.

tl;dr: if in doubt, ask me.

brettneese avatar Nov 18 '16 17:11 brettneese

Hey guys, is there some progress behind this?

malekjaroslav avatar Apr 12 '18 12:04 malekjaroslav