---
title: "Deletes a lambda for good"
method: DELETE
path: "/lambdas/{privateKey}"
tags: ["Lambdas"]
---

# Deletes a lambda for good

`DELETE /lambdas/{privateKey}`

## Request

- Base URL: `https://genhttp.dev/api/v1`
- URL: `https://genhttp.dev/api/v1/lambdas/{privateKey}`
- Auth: none declared

Takes it offline and removes everything kept for it: every version, every feature with its preview, its database,
workspace and secrets, its showcase entry and published source, and what was counted of its visitors. This cannot be
undone, and its public key is free for anybody to claim afterwards. `GET …/export` takes a copy first.

## Path parameters

- `privateKey` string, required

## Response `204`

The lambda and everything kept for it are gone.

## Other responses

- `403`: The lambda is a demo, which anybody may read and nobody may change. Create a lambda of your own from it instead: `POST /lambdas` with the demo's id as `template`.
- `404`: No lambda has this editor key. A key that never existed and the key of a deleted lambda are answered alike.

---

[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)
