Delete projects using the CLI
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 47
- Forks
- 26
- PR merge metrics
- No merged PRs in 30d
Description
Preflight checklist
- I could not find a solution in the existing issues, docs, nor discussions.
- I agree to follow this project's Code of Conduct.
- I have read and am following this repository's Contribution Guidelines.
- This issue affects my Ory Cloud project.
- I have joined the Ory Community Slack.
- I am signed up to the Ory Security Patch Newsletter.
Describe your problem
Cannot Purge projects using the Ory CLI. The only option is to delete identities:
➜ ~ ory delete
Delete resources
Usage:
ory delete [command]
Available Commands:
identity Delete one or more identities by their ID(s)
Flags:
-c, --config string Path to the Ory Cloud configuration file.
--format string Set the output format. One of default, json, yaml, and json-pretty. (default "default")
-h, --help help for delete
-q, --quiet Be quiet with output printing.
-y, --yes Confirm all dialogs with yes.
Use "ory delete [command] --help" for more information about a command.
Describe your ideal solution
Add the projects to the delete resources command
Workarounds or alternatives
Currently it is possible to delete projects, but only through an obscure API call since you need to copy over the cookies you obtained from the Ory Cloud console into a cURL command.
curl -X DELETE https://api.console.ory.sh/projects/<project-id> -H "Accept: application/json" --cookie "<your cookies>"
Version
v0.1.36
Additional Context
https://ory-community.slack.com/archives/C02MR4DEEGH/p1660659578640199
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the existing ory delete command and its identity subcommand, then compare its behavior with the documented DELETE project API endpoint. Done means the CLI exposes project deletion under the delete resources command and supports the existing confirmation and output flags for a project ID.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100