Delete an entire secret group or a specific key within a secret group. When deleting a specific key, the remaining secrets in the group are preserved. When deleting the entire group, all secrets and the group itself are removed.
curl --request DELETE \
--url https://api.case.dev/compute/v1/secrets/{group} \
--header 'Authorization: Bearer <token>'{
"success": true,
"message": "Deleted key 'DATABASE_PASSWORD' from group 'database-config'"
}API key starting with sk_case_
Name of the secret group
Specific key to delete within the group. If not provided, the entire group is deleted
Environment name. If not provided, uses the default environment
Was this page helpful?
curl --request DELETE \
--url https://api.case.dev/compute/v1/secrets/{group} \
--header 'Authorization: Bearer <token>'{
"success": true,
"message": "Deleted key 'DATABASE_PASSWORD' from group 'database-config'"
}