---
title: "Switches counting off and deletes it"
method: DELETE
path: "/lambdas/{privateKey}/analytics"
tags: ["Analytics"]
---

# Switches counting off and deletes it

`DELETE /lambdas/{privateKey}/analytics`

## Request

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

**This cannot be undone**: the whole year that was kept is deleted. Switched on again, counting starts from nothing.

## Path parameters

- `privateKey` string, required

## Response `204`

Done. There is no body.

## Other responses

- `403`: The lambda is a demo, whose visitors are not counted.
- `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)
