---
title: "Delete a secret set"
description: "Deletes a secret set and its values. Retrying waits for all hosts to acknowledge the committed revocation."
canonical: "https://www.cool.computer/docs/api-reference/secrets/delete-a-secret-set"
---
# Delete a secret set

> Deletes a secret set and its values. Retrying waits for all hosts to acknowledge the committed revocation.

```http
DELETE https://api.cool.computer/api/secrets/{secret_set}
```

Deletes a secret set and its values. Retrying waits for all hosts to acknowledge the committed revocation. Callers: an account bearer (API key or access token).

## Authorization

- A Cool Computers API key, user access token, or claimed agent access token in the Authorization header. Follow https://www.cool.computer/auth.md for agent registration and https://www.cool.computer/authentication.md for direct user credentials.

## Parameters

- `secret_set` (path, string, pattern `^[a-z0-9][a-z0-9:_-]{0,62}$`, required): The secret set's name.

## Responses

- `202`: Revocation committed; host acknowledgement is pending and finishes automatically. Retry DELETE to observe it.
  - `application/json` (object)
    - `state` ("pending", required)
- `204`: The secret set was deleted.
- `401`: Unauthorized.
- `404`: Not Found.
- `429`: Too Many Requests. If the problem code is api_request_rate_exceeded, wait for Retry-After seconds; other problem codes describe a separate limit.
- `500`: Internal Server Error.
- `default`: A machine-readable API error with a stable code and recovery instruction.

An error is an `application/problem+json` document with a stable `code`; [API errors](/docs/api-reference/errors) says how to handle one.

## Example

```sh
curl -X DELETE "https://api.cool.computer/api/secrets/$PARAM_SECRET_SET" \
  -H "authorization: Bearer $TOKEN"
```
