---
title: "Delete environment access secret"
method: DELETE
path: "/environments/{environment_key}/access_secrets/{access_secret_key}"
tags: ["access_secrets"]
---

# Delete environment access secret

`DELETE /environments/{environment_key}/access_secrets/{access_secret_key}`

Delete an access secret in an environment. Authentication should be done using the environment where you want to delete the secret and an Organization Access Secret.

## Response `204`

No content

## Other responses

- `401` — Unauthorized
- `404` — Not found

---

[API](https://skmtc.dev/spreedly/apis/spreedly-api-v1.md) · [All operations](https://skmtc.dev/spreedly/apis/spreedly-api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/spreedly/spreedly-api-v1/revisions/72ba4e23e65c/schema)
