Delete Application Env Secret
import requests
url = "https://platform.ankra.app/org/applications/{application_id}/env-secrets/{secret_key}"
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/org/applications/{application_id}/env-secrets/{secret_key}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request DELETE \
--url https://platform.ankra.app/org/applications/{application_id}/env-secrets/{secret_key} \
--header 'Authorization: Bearer <token>'{
"deleted": true
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}Applications
Delete Application Env Secret
Clear one environment secret: the catalogue entry and the stored value. The <app>-env Secret stops carrying the key on the application's next deploy. A browser session twin is mounted at the same path without the /api/v1 prefix (cookie authentication plus the X-Ankra-CSRF double-submit header). With environment_id, resolve or modify only that environment; deletion suppresses a shared default locally, and apply never changes another target. Without it, existing shared catalogue behaviour is retained; all-target apply still preserves environment overrides.
DELETE
/
org
/
applications
/
{application_id}
/
env-secrets
/
{secret_key}
Delete Application Env Secret
import requests
url = "https://platform.ankra.app/org/applications/{application_id}/env-secrets/{secret_key}"
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/org/applications/{application_id}/env-secrets/{secret_key}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request DELETE \
--url https://platform.ankra.app/org/applications/{application_id}/env-secrets/{secret_key} \
--header 'Authorization: Bearer <token>'{
"deleted": true
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Select exactly one organisation-owned environment. Omit only for legacy shared catalogue management or application-wide apply. Empty or repeated values are refused.
Response
Successful Response