Also, do I <still> have to write to you to delete ...
# ory-network
r
Also, do I still have to write to you to delete test projects? Can't seem to find a UI for that
h
There’s an API for it but no UI yet. It’s a bit tricky to use though and should not be used on paid projects because it doesn’t cancel the subscription yet
r
Cool. I just wanted to clean up my free test projects, I gave a try to https://www.ory.sh/docs/reference/api#tag/project but can't even call
Get a Project
with my PAT...
Copy code
"error": {
    "code": 404,
    "status": "Not Found",
    "request": "2e2edd72-REDACTED",
    "message": "Requested url does not match any rules"
  }
Is there any way to get error logs?
h
It requires a bit of a workaround right now, the correct URL is: http://api.console.ory.sh/projects The endpoints do not work with personal access tokens, only with a session cookie or session token from ory itself. you can either navigate to console.ory.sh and execute in the chrome console
fetch('<https://api.console.ory.sh/projects/><id>', {method:'delete'}).then((res) => ...)
(WARNING: PSEUDO CODE) or use the ory cli
ory auth login
and
cat ~/.ory-cloud.json
and use the session token from there in postman:
Copy code
<https://api.console.ory.sh/projects/><id>
Authorization: Bearer <the-token>
r
Thanks. Yeah that was indeed a little tricky... but it worked!
h
nice 🙂