---
title: "Delete an app's secret key"
method: DELETE
path: "/v1/apps/{app_name}/secretkeys/{secret_name}"
tags: ["Secrets"]
---

# Delete an app's secret key

`DELETE /v1/apps/{app_name}/secretkeys/{secret_name}`

## Request

- Base URL: `https://api.machines.dev`
- URL: `https://api.machines.dev/v1/apps/{app_name}/secretkeys/{secret_name}`
- Auth: HTTP bearer

## Path parameters

- `app_name` string, required
- `secret_name` string, required

## Response `200`

OK

- DeleteSecretkeyResponse
  - `Version` integer: DEPRECATED
  - `version` integer

## Changes

- **2026-08-12** `f54480c4ce7f`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/machines/apis/machines-api/changes/v1/apps/:app_name/secretkeys/:secret_name/delete.md)

---

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