Delete Application Env Secret
import requests
url = "https://platform.ankra.app/api/v1/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/api/v1/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/api/v1/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).
DELETE
/
api
/
v1
/
org
/
applications
/
{application_id}
/
env-secrets
/
{secret_key}
Delete Application Env Secret
import requests
url = "https://platform.ankra.app/api/v1/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/api/v1/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/api/v1/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.
Response
Successful Response