Delete a project
import requests
url = "https://platform.ankra.app/api/v1/org/projects/{project_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/projects/{project_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request DELETE \
--url https://platform.ankra.app/api/v1/org/projects/{project_id} \
--header 'Authorization: Bearer <token>'{
"success": true,
"retired_assignments": 123,
"repointed_members": 123,
"pinned_tokens": 123
}{
"detail": "<string>",
"counts": {}
}Projects
Delete a project
Deletes an empty project: its project-scoped assignments are retired and members whose current project it was move to the default project. The default project and a project still holding resources are refused. Requires projects.manage.
DELETE
/
api
/
v1
/
org
/
projects
/
{project_id}
Delete a project
import requests
url = "https://platform.ankra.app/api/v1/org/projects/{project_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/projects/{project_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request DELETE \
--url https://platform.ankra.app/api/v1/org/projects/{project_id} \
--header 'Authorization: Bearer <token>'{
"success": true,
"retired_assignments": 123,
"repointed_members": 123,
"pinned_tokens": 123
}{
"detail": "<string>",
"counts": {}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The project.
Response
What the delete changed.
Project-scoped role assignments retired with the project.
Members whose current project it was, now in the default project.
Tokens still pinned to it; they resolve to the default project and should be re-pinned or revoked.