Skip to main content

ory identities delete

ory identities delete#

Delete identities by ID


This command deletes one or more identities by ID. To delete an identity by some selector, e.g. the recovery email address, use the list command in combination with jq.

We have to admit, this is not easy if you don't speak jq fluently. What about opening an issue and telling us what predefined selectors you want to have?

ory identities delete <id-0 [id-1 ...]> [flags]


To delete the identity with the recovery email address "", run:
$ kratos identities delete $(kratos identities list --format json | jq -r 'map(select(.recovery_addresses[].value == "")) | .[].id')


-h, --help help for delete

Options inherited from parent commands#

--endpoint string Use a different endpoint. (default "")
-p, --project string Must be set to your Ory Cloud Project Slug. Alternatively set using the ORY_PROJECT_ID environmental variable.


Last updated on by aeneasr