<@U04UQ68083H> where can I find information on how...
# ory-copilot
a
@chilly-king-10285 where can I find information on how to delete my projects that I don't need or my account?
c
A message from kapa.ai
To delete a project in Ory, you can use the
DELETE /projects/{project_id}
endpoint. This will irrecoverably purge a project and its data. Please note that this action cannot be undone and will delete all your data related to the project. You need to be authenticated by means of the
oryWorkspaceApiKey
method to perform this operation. Here is the API endpoint:
Copy code
plaintext DELETE /projects/{project_id}
You need to replace
{project_id}
with the ID of the project you want to delete. However, please note that this operation should be used with extreme caution due to its irreversible nature. As for deleting your account, the provided knowledge sources do not contain information on how to delete an Ory account. I would recommend checking the Ory documentation or reaching out to Ory support for further assistance. You can find more details about the project deletion API in the [Ory API Reference](https://www.ory.sh/docs/reference/api). Please note that the ability to delete projects or accounts may be subject to certain permissions and roles within your organization.
a
@chilly-king-10285 so, I cannot do that from the Ory console, but through their cli?
c
A message from kapa.ai
Based on the provided knowledge sources, it appears that the deletion of a project can be done through the Ory API, not directly from the Ory Console or the Ory CLI. The API endpoint for deleting a project is
DELETE /projects/{project_id}
. However, for deleting an OAuth2 client, you can use the Ory Console, Ory CLI, Ory SDK, or REST API. Here is the command for the Ory CLI:
Copy code
plaintext ory delete oauth2-client {client.id}
You need to replace
{client.id}
with the ID of the OAuth2 client you want to delete. For deleting an organization, you can use the Ory CLI with the following command:
Copy code
plaintext ory delete organization <id> [--project=PROJECT_ID] [flags]
You need to replace
<id>
with the ID of the organization you want to delete. Please note that these operations should be used with caution as they are irreversible. You can find more details about these commands in the [Ory CLI Documentation](https://www.ory.sh/docs/cli/ory-delete-organization#ory-delete-organization) and [Ory Hydra Guide](https://www.ory.sh/docs/hydra/guides/oauth2-clients#delete-oauth2-client). As for deleting your account, the provided knowledge sources do not contain information on how to delete an Ory account. I would recommend checking the Ory documentation or reaching out to Ory support for further assistance.