---
title: "Delete a deploy key"
method: DELETE
path: "/repos/{owner}/{repo}/keys/{key_id}"
tags: ["repos"]
---

# Delete a deploy key

`DELETE /repos/{owner}/{repo}/keys/{key_id}`

Deploy keys are immutable. If you need to update a key, remove the key and create a new one instead.

## Path parameters

- `owner` string, required
- `repo` string, required
- `key_id` integer, required

## Response `204`

Response

---

[API](https://skmtc.net/github/apis/github-v3-rest-api.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api/versions/a367f7028301/schema)
