---
title: "Takes the published code of a lambda down"
method: DELETE
path: "/lambdas/{privateKey}/source"
tags: ["Open source"]
---

# Takes the published code of a lambda down

`DELETE /lambdas/{privateKey}/source`

## Request

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

From now on it is not found at `/source/{publicKey}`, and cannot be cloned. Its stars and its license are kept for
when it is published again. Whatever somebody downloaded while it was published stays theirs, under the license it
came with. Nothing happens if it is not published.

## Path parameters

- `privateKey` string, required

## Response `204`

Done. There is no body.

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