cli icon indicating copy to clipboard operation
cli copied to clipboard

Deleting identites help unclear, command prints an error that "should never be printed"

Open tomekpapiernik opened this issue 3 years ago • 1 comments

Preflight checklist

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

tomekpapiernik avatar May 12 '22 09:05 tomekpapiernik

Nice find, thank you!

aeneasr avatar May 12 '22 09:05 aeneasr