Skip to content

Delete projects using the CLI #190

Description

@Benehiko

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    featNew feature or request.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions