---
title: "Delete function"
method: DELETE
path: "/v1/functions/{functionId}"
tags: ["Functions"]
---

# Delete function

`DELETE /v1/functions/{functionId}`

Permanently delete a function and cascade: triggers, secrets, deployment history, managed agents+tools, and revoke the auto-provisioned API key. The AWS Lambda + log group are torn down asynchronously.

## Path parameters

- `functionId` string, required

## Response `200`

Function deleted.

- object
  - `deleted` boolean, required
  - `name` string
  - `slug` string

## Other responses

- `400` — Cannot delete while a deployment is in progress.
- `401` — Unauthorized.
- `404` — Function not found.

---

[API](https://skmtc.net/zavudev/apis/zavu-unified-messaging-layer-api.md) · [All operations](https://skmtc.net/zavudev/apis/zavu-unified-messaging-layer-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/zavudev/zavu-unified-messaging-layer-api/versions/07b87b6ae707/schema)
