---
title: "Remove the specified auth secret."
method: DELETE
path: "/workspaces/{workspace_id}/secrets/{secret_id}"
tags: ["auth secrets"]
---

# Remove the specified auth secret.

`DELETE /workspaces/{workspace_id}/secrets/{secret_id}`

You need `workspaces.auth_secret.delete` permission to access this resource.

## Path parameters

- `workspace_id` string, required
- `secret_id` string, required

## Response `204`

No Content

- object

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found

---

[API](https://skmtc.net/elastic/apis/elastic-io-rest-api-documentation-v2.md) · [All operations](https://skmtc.net/elastic/apis/elastic-io-rest-api-documentation-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/elastic/elastic-io-rest-api-documentation-v2/revisions/411f9f98c01e/schema)
