Delete a secret by name
curl --request DELETE \
--url https://albus.sh/api/secrets/{name} \
--header 'Authorization: Bearer <token>'import requests
url = "https://albus.sh/api/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://albus.sh/api/secrets/{name}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"message": "Invalid or expired token"
}{
"message": "Resource not found"
}Secrets
Delete a secret by name
DELETE
/
secrets
/
{name}
Delete a secret by name
curl --request DELETE \
--url https://albus.sh/api/secrets/{name} \
--header 'Authorization: Bearer <token>'import requests
url = "https://albus.sh/api/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://albus.sh/api/secrets/{name}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"message": "Invalid or expired token"
}{
"message": "Resource not found"
}