Delete key store
/key-store/{id}
Team admins only (signed-in users; API tokens get 403). Refused with 409 while the store is current, until a minute after it was last current, while any integrated account or environment integration keeps its secrets in it. Deletes of deleted accounts' secrets still queued for it are best effort: once the store is gone they are logged, and those secrets stay in the customer's store.
Path Parameters
Response Body
The ID of the resource that was deleted.
1ba1f401-7183-47c5-9e39-e8e257e3c795Errors
| Status | Description |
|---|---|
409 | The store is current, stopped being current less than a minute ago, or still holds secrets. |
curl -X DELETE 'https://api.truto.one/key-store/{id}' \
-H 'Authorization: Bearer <your_api_token>' \
-H 'Content-Type: application/json'const response = await fetch('https://api.truto.one/key-store/{id}', {
method: 'DELETE',
headers: {
'Authorization': 'Bearer <your_api_token>',
'Content-Type': 'application/json',
},
});
const data = await response.json();
console.log(data);import requests
url = "https://api.truto.one/key-store/{id}"
headers = {
"Authorization": "Bearer <your_api_token>",
"Content-Type": "application/json",
}
params = {
}
response = requests.delete(url, headers=headers, params=params)
print(response.json())