cycloid-cli
cycloid-cli copied to clipboard
org: implement a force delete
Currently when you delete an org, the org have to be empty (no project created)
Maybe we could provide a --force-delete
flag in the cli to also delete project inside the org
@gaelL should not be done on the API side ?
We have thought several times about this, having this ?force=true
on the API but I think it's "not" a good behavior for an API. We have the restriction because deleting Projects is "sensible" so it's better to be handled for the user for example.
Would make sense for the CLI to follow the same behavior, maybe with a helper (displaying the current Projects) or something but that's up to you :).
thanks @xescugc for the update on this point. :)
in this case, we could have something like:
$ cy org delete --org my-org
org is not empty, please delete your projects or use --force
$ cy org delete --org my-org --force
org and X projects, are going to be deleted. Proceed ? [Y/n]