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

# Delete function

`DELETE /functions/{function_id}`

Permanently delete a serverless function. This will also remove the function from the runtime platform and delete all associated secrets.

After deletion:
- Function will be removed from Cloudflare Workers or Supabase Edge Functions
- All function secrets are automatically deleted
- Function endpoint URL will return 404
- Function invocation records are preserved for audit history

This operation cannot be undone. Make sure to backup function code if needed before deletion.

## Response `204`

Function deleted successfully (no content returned)

## Other responses

- `401` — Missing or invalid API key
- `404` — Resource not found

---

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