Delete a secret
curl --request DELETE \
--url https://api.arg.ai/api/organizations/{orgId}/secrets/{name} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.arg.ai/api/organizations/{orgId}/secrets/{name}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.arg.ai/api/organizations/{orgId}/secrets/{name}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{}{
"detail": "<string>"
}Organizations
Delete a secret
Remove a secret and every grant on it. Only its owner can delete it. Organizations outside the feature rollout answer 404.
DELETE
/
api
/
organizations
/
{orgId}
/
secrets
/
{name}
Delete a secret
curl --request DELETE \
--url https://api.arg.ai/api/organizations/{orgId}/secrets/{name} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.arg.ai/api/organizations/{orgId}/secrets/{name}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.arg.ai/api/organizations/{orgId}/secrets/{name}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{}{
"detail": "<string>"
}