Deleting identites help unclear, command prints an error that "should never be printed"
Preflight checklist
- [X] I could not find a solution in the existing issues, docs, nor discussions.
- [X] I agree to follow this project's Code of Conduct.
- [X] I have read and am following this repository's Contribution Guidelines.
- [ ] This issue affects my Ory Cloud project.
- [X] I have joined the Ory Community Slack.
- [X] I am signed up to the Ory Security Patch Newsletter.
Describe the bug
I can't get ory identity delete to work. When I run ory identity --help, the help text says:
...
Usage:
ory delete identity id-0 [id-1] [id-2] [id-n] [flags]
I run ory ls identities and get a list of the identities in my project. Identity IDs have this format: fef2df71-f06a-45ab-b52d-8bdc8e991e49
I try to use that ID and remove the identity:
ory delete identity id-fef2df71-f06a-45ab-b52d-8bdc8e991e49 --project MY_PROJECT_ID
(or w/o the id -> ory delete identity fef2df71-f06a-45ab-b52d-8bdc8e991e49 --project MY_PROJECT_ID )
The response I get is:
Unable to locate the resource
id-fef2df71-f06a-45ab-b52d-8bdc8e991e49: this error should never be printed
I thought that maybe the help text with id-0 / id-1 tells you to select identities like list items where id-0 points to the first identity printed in the list you get from ory ls identities but this doesn't work either.
➜ ~ ory delete identity id-0 --project MY_PROJECT_ID
You are authenticated as: [email protected]
You are authenticated as: [email protected]
Unable to locate the resource
id-0: this error should never be printed
➜ ~ ory delete identity id-1 --project MY_PROJECT_ID
You are authenticated as: [email protected]
You are authenticated as: [email protected]
Unable to locate the resource
id-1: this error should never be printed
Reproducing the bug
ory delete identity id-IDENTITY_ID --project PROJECT_ID
or
ory delete identity IDENTITY_ID --project PROJECT_ID
or
ory delete identity id-0 / id-1 --project PROJECT_ID
Relevant log output
No response
Relevant configuration
No response
Version
v0.1.29
On which operating system are you observing this issue?
Ory Cloud
In which environment are you deploying?
Ory Cloud
Additional Context
No response
Nice find, thank you!