---
title: "Delete secret group or key"
method: DELETE
path: "/compute/v1/secrets/{group}"
tags: ["Compute"]
---

# Delete secret group or key

`DELETE /compute/v1/secrets/{group}`

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.

## Path parameters

- `group` string, required

## Query parameters

- `key` string
- `env` string

## Response `200`

Secret or secret group successfully deleted

- object
  - `success` boolean
  - `message` string

## Other responses

- `400` — Bad request - missing group name or no default environment
- `401` — Unauthorized - invalid API key
- `404` — Secret group, environment, or organization not found

---

[API](https://skmtc.net/casemark/apis/case-dev-api.md) · [All operations](https://skmtc.net/casemark/apis/case-dev-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/casemark/case-dev-api/versions/5b7e64e6d6f9/schema)
