---
title: "Delete a secret"
method: DELETE
path: "/v0/api/projects/{projectGroupId}/secrets/{secretId}"
tags: ["Secrets"]
---

# Delete a secret

`DELETE /v0/api/projects/{projectGroupId}/secrets/{secretId}`

## Request

- Base URL: `https://api.anything.com`
- URL: `https://api.anything.com/v0/api/projects/{projectGroupId}/secrets/{secretId}`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/anything/apis/anything-api/docs/v0/api/projects/:projectGroupId/secrets/:secretId/delete.ts> (a function with typed inputs; its response is checked against the schema)

Removes a secret from the project.

## Path parameters

- `projectGroupId` string, uuid, required
- `secretId` string, uuid, required

## Response `204`

Secret deleted

## Other responses

- `400`: Invalid request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found — the referenced resource does not exist (including malformed resource IDs)

---

[API](https://skmtc.dev/anything/apis/anything-api.md) - [All operations](https://skmtc.dev/anything/apis/anything-api/llms.txt) - [OpenAPI document](https://skmtc.dev/anything/apis/anything-api/revisions/1475488f3446?raw)
