<@U04UQ68083H> how can I delete project from ory n...
# ory-copilot
w
@chilly-king-10285 how can I delete project from ory netwrok
c
A message from kapa.ai
To delete a project from the Ory network, you can use the Ory API endpoint
DELETE /projects/{project_id}
. This endpoint allows you to purge (completely delete) a project and its data. Please note that this action is irreversible and will delete all your data, so use it with extreme caution. Here is the API endpoint:
Copy code
http request DELETE /projects/{project_id}
Replace
{project_id}
with the ID of the project you want to delete. The API will respond with a 204 status code if the operation is successful, indicating that the project has been deleted. For more details, you can refer to the [Ory API Reference](https://www.ory.sh/docs/reference/api).
w
@chilly-king-10285 can I do it from the console?
c
A message from kapa.ai
The provided knowledge sources do not contain specific information about deleting a project from the Ory network using the console. However, they do provide information on how to delete resources such as OAuth2 clients and access tokens using the Ory CLI and API. For detailed instructions on how to delete a project from the Ory network using the console, you may need to refer to the official Ory documentation or contact Ory support.
w
@chilly-king-10285 how can I delete project by id?
c
A message from kapa.ai
To delete a project by its ID from the Ory network, you can use the Ory API endpoint
DELETE /projects/{project_id}
. This endpoint allows you to purge (completely delete) a project and its data. Please note that this action is irreversible and will delete all your data, so use it with extreme caution. Here is the API endpoint:
Copy code
http request DELETE /projects/{project_id}
Replace
{project_id}
with the ID of the project you want to delete. The API will respond with a 204 status code if the operation is successful, indicating that the project has been deleted. For more details, you can refer to the [Ory API Reference](https://www.ory.sh/docs/reference/api).
w
@chilly-king-10285 how do switch between environments
c
A message from kapa.ai
Ory Network offers different environments for production, staging, and development. These are called Ory Network projects. You can switch between these environments by creating different projects for each environment. To create a new development project, you can use the following command:
Copy code
bash ory create project --name "My Development Project"
To create a new staging project, you can open the [Ory Console](https://console.ory.sh/projects/create), hit "Create new project", and select the Staging environment in the next screen. Remember, staging and development projects are for test data only! Ory Network doesn't guarantee GDPR-compliant PII handling in staging and development projects. For more information, you can refer to the [Ory Documentation](https://www.ory.sh/docs/getting-started/local-development#environments).
w
@chilly-king-10285 which api key do I need for this request:
Copy code
<https://api.console.ory.sh/projects/{project}/tokens>
c
A message from kapa.ai
To perform a request to the endpoint
<https://api.console.ory.sh/projects/{project}/tokens>
, you need to be authenticated using the
oryWorkspaceApiKey
. This applies to both listing a project's API tokens (
GET /projects/{project}/tokens
) and creating a project API token (
POST /projects/{project}/tokens
). For more details, you can refer to the [Ory API Reference](https://www.ory.sh/docs/reference/api).