wooden-manchester-52124
11/12/2024, 5:44 PMbrief-egg-61061
11/12/2024, 5:44 PMbrief-egg-61061
11/12/2024, 5:45 PMDELETE /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: 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.