---
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.

## Changes

- **2026-05-15** `3e45958691da` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/zavudev/apis/zavu-unified-messaging-layer-api/changes/v1/functions/:functionId/delete.md)

---

[API](https://skmtc.dev/zavudev/apis/zavu-unified-messaging-layer-api.md) · [All operations](https://skmtc.dev/zavudev/apis/zavu-unified-messaging-layer-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/zavudev/zavu-unified-messaging-layer-api/revisions/4dacdff2adf8/schema)
