---
title: "Delete an existing Key"
method: DELETE
path: "/apiops/projects/{projectName}/keys/{keyName}/"
tags: ["Key"]
---

# Delete an existing Key

`DELETE /apiops/projects/{projectName}/keys/{keyName}/`

## Request

- Base URL: `http://167.86.118.166:32080`
- URL: `http://167.86.118.166:32080/apiops/projects/{projectName}/keys/{keyName}/`
- Auth: none declared
- TypeScript: <https://skmtc.dev/apinizer/apis/apinizer-management-apis/docs/apiops/projects/:projectName/keys/:keyName/delete.ts> (a function with typed inputs; its response is checked against the schema)

Deletes an existing Key and undeploys it from environments.

## Path parameters

- `projectName` string, required
- `keyName` string, required

## Query parameters

- `jwkDeleteAction` 'NULLIFY' | 'DELETE'

## Response `200`

successful operation!

- ApiOpsResponseKey
  - `status` 'SUCCESS' | 'FAILURE'
  - `resultMessage` string
  - `resultList` KeyManagementDTO[]
    - `id` string
    - `name` string
    - `description` string
    - `projectId` string
    - `keyType` 'SECRET_KEY' | 'PRIVATE_KEY' | 'PUBLIC_KEY'
    - `algorithm` 'AES' | 'DES' | 'DESede' | 'RSA'
    - `cryptoKeyInfoEnvironmentList` KeyEnvironmentDTO[]
      - `environmentName` string
      - `alias` string
      - `source` string
  - `resultCount` integer

## Other responses

- `401`: not authorized for this operation!
- `500`: internal error!

## Changes

- **2026-10-20** `d1a546deccf0`: 1 breaking
  - added the new path request parameter `keyName`
  - …this revision’s changelog is incomplete
- **2026-08-11** `9ae232e55479`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/apinizer/apis/apinizer-management-apis/changes/apiops/projects/:projectName/keys/:keyName/delete.md)

---

[API](https://skmtc.dev/apinizer/apis/apinizer-management-apis.md) - [All operations](https://skmtc.dev/apinizer/apis/apinizer-management-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/apinizer/apis/apinizer-management-apis/revisions/e083046b24cd?raw)
