---
title: "Delete a Function"
method: DELETE
path: "/v3/functions/{functionName}"
tags: ["Functions"]
---

# Delete a Function

`DELETE /v3/functions/{functionName}`

**Delete a function and every one of its versions.**

Permanent. Running and queued calls that reference this function
continue to completion against the version they captured at call
time, but no new calls can target it.

## Before deleting

Workflow nodes that reference this function will fail at call time
after deletion. List workflows that reference it first:

```
GET /v3/workflows?functionNames=my-function
```

Update or remove those workflows, or create a replacement function
and re-point the workflow nodes, before deleting.

## Path parameters

- `functionName` string, required

## Response `204`

There is no content to send for this request, but the headers may be useful.

---

[API](https://skmtc.net/bem-team/apis/bem-api.md) · [All operations](https://skmtc.net/bem-team/apis/bem-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bem-team/bem-api/versions/b0a6debb3458/schema)
