ory / ory/cli

Delete projects using the CLI

Open
#190 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

feat
Dominant language
Go
Stars
47
Forks
26
PR merge metrics
No merged PRs in 30d

Description

Preflight checklist
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.