Delete a specific secret by id
curl --request DELETE \
--url https://api.rootly.com/v1/secrets/{id} \
--header 'Authorization: Bearer <token>'
{
"data": {
"id": "37faa30d-f132-435f-a7c0-e0d0b7644785",
"type": "secrets",
"attributes": {
"kind": "built_in",
"name": "plgcwreojl",
"secret": "[REDACTED]",
"hashicorp_vault_mount": "secret",
"hashicorp_vault_path": null,
"hashicorp_vault_version": 0,
"created_at": "2025-07-17T11:07:22.681-07:00",
"updated_at": "2025-07-17T11:07:27.412-07:00"
}
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
secret deleted
The response is of type object
.
Was this page helpful?
curl --request DELETE \
--url https://api.rootly.com/v1/secrets/{id} \
--header 'Authorization: Bearer <token>'
{
"data": {
"id": "37faa30d-f132-435f-a7c0-e0d0b7644785",
"type": "secrets",
"attributes": {
"kind": "built_in",
"name": "plgcwreojl",
"secret": "[REDACTED]",
"hashicorp_vault_mount": "secret",
"hashicorp_vault_path": null,
"hashicorp_vault_version": 0,
"created_at": "2025-07-17T11:07:22.681-07:00",
"updated_at": "2025-07-17T11:07:27.412-07:00"
}
}
}