Hi, we are using Ory Network (Production) and we t...
# ory-network
w
Hi, we are using Ory Network (Production) and we tried to create some identity schema's via the CLI, which was unsuccesful. However now we have a bunch of identity schema's with a very long name, which breaks the UI, so we can't access the dropdown menu. We tried deleting the schema's through the API, but this results in:
Copy code
{
  "error": {
    "code": 409,
    "status": "Conflict",
    "request": "4733df08-d56a-9baa-870e-ba028b71fedd",
    "reason": "Cannot delete identity schema: at least one project still references it.",
    "details": {
      "reason": "in_use_by_project",
      "schema_id": "XXX"
    },
    "message": "The resource could not be created due to a conflict"
  }
}
However I cannot find any project in which these identies are being used. I even deleted our original projects and created new ones, but the problem persists, so the environment is unreliable, and it is borderline impossible to manage the identity schema's. Do you have a suggestion on how to resolve this?
👀 1
a
Hi @wonderful-salesmen-96602! I am actually working on a fix for this as we speak, of which you can delete identity schemas that are a part of a deleted project. This may take some time as its a refactor of identity schemas and is a large change. Due to how identity schemas work currently, they're a little finicky. As for the long named ones... could you give me the copied hash ( the copy button under the schema name ) and if possible somehow give me the full name of the schema. You might be able to achieve this by inspecting it. Also confirm if you want these identity schemas deleted and I can try to help out. - Just shoot me a DM too