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

# Delete a function

`DELETE /projects/{id}/functions/{functionId}`

## Request

- Base URL: `https://api.volcano.dev`
- URL: `https://api.volcano.dev/projects/{id}/functions/{functionId}`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Schedules asynchronous function deletion. If another deployment is running, the function
preserves its current status and exposes the queued deletion through `pending_deployment_id`.
Its status changes to `deleting` when cleanup starts. After cleanup, it returns 404 and no
longer appears in function lists.

## Path parameters

- `id` string, uuid, required
- `functionId` string, uuid, required

## Response `202`

Function deletion started or queued

## Other responses

- `404`: Function not found

## Changes

- **2026-10-07** `23e7875e7c4c`: 1 info
  - the endpoint scheme security `ProjectAccessToken` was added to the API
- **2026-09-19** `3a6f365f3f35`: 3 breaking, 2 info
  - added the new path request parameter `functionId`
  - added the new path request parameter `id`
  - the response's body type changed from no type to `object` for status `404`
  - added the optional property `code` to the response with the `404` status
  - …1 more
- **2026-08-27** `bb44e98aba2e`: 2 breaking, 3 warning
  - the response's body type changed from `object` to no type for status `404`
  - removed the required property `error` from the response with the `404` status
  - deleted the `path` request parameter `functionId`
  - deleted the `path` request parameter `id`
  - …1 more
- **2026-07-27** `bb52784e098a`: 1 info
  - added the optional property `code` to the response with the `404` status

[Operation history](https://skmtc.dev/kong/apis/volcano-api/changes/projects/:id/functions/:functionId/delete.md)

---

[API](https://skmtc.dev/kong/apis/volcano-api.md) - [All operations](https://skmtc.dev/kong/apis/volcano-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kong/apis/volcano-api/revisions/84c4488f91e9?raw)
