<@U04UQ68083H> can I delete a project in a workspa...
# ory-copilot
w
@chilly-king-10285 can I delete a project in a workspace using ory console?
b
A message from kapa.ai
Based on the provided knowledge sources, I don't have specific information about deleting a project using the Ory Console. However, I can provide information on how to delete a project using the Ory API, which is an alternative method. To delete a project in a workspace, you can use the Ory API. Here's how: 1. Use the
DELETE /projects/{project_id}
endpoint. 2. Replace
{project_id}
with the ID of the project you want to delete. 3. You must authenticate using a Workspace API key (with the prefix
ory_wak_
). Here's an example of how to make the API call using curl:
Copy code
bash export ORY_PROJECT_ID=your_project_id_here export WORKSPACE_API_KEY=your_workspace_api_key_here  curl --location --request DELETE "<https://api.console.ory.sh/projects/${ORY_PROJECT_ID}>" \   --header "Accept: application/json" \   --header "Authorization: Bearer ${WORKSPACE_API_KEY}"
It's important to note that this action is irreversible and will delete ALL your data associated with the project. Use this endpoint with extreme caution. [Ory API Reference](https://www.ory.sh/docs/reference/api) mentions that this operation requires authentication using the
oryWorkspaceApiKey
method. [Workspace API Keys vs Project API Keys](https://www.ory.sh/docs/concepts/personal-access-token#workspace-api-keys-vs-project-api-keys) confirms that Workspace API Keys have the ability to delete projects, while Project API Keys do not. Remember to be cautious when using this API, as the deletion cannot be undone.