---
title: "Deletes a lambda and everything kept for it"
method: DELETE
path: "/admin/lambdas/{publicKey}"
tags: ["Administration"]
---

# Deletes a lambda and everything kept for it

`DELETE /admin/lambdas/{publicKey}`

## Request

- Base URL: `https://genhttp.dev/api/v1`
- URL: `https://genhttp.dev/api/v1/admin/lambdas/{publicKey}`
- Auth: none declared. Required headers: `X-Admin-Token`

As its owner would, for good. Demos cannot be deleted: the installation keeps them.

## Path parameters

- `publicKey` string, required

## Headers

- `X-Admin-Token` string, required

## Response `204`

Done. There is no body.

## Other responses

- `401`: The token is missing.
- `403`: The token is wrong.
- `404`: No lambda has this public key.

---

[API](https://skmtc.dev/genhttp/apis/genhttp-lambda-api.md) · [All operations](https://skmtc.dev/genhttp/apis/genhttp-lambda-api/llms.txt) · [OpenAPI document](https://skmtc.dev/genhttp/apis/genhttp-lambda-api/revisions/8b36699e03df?raw)
