---
title: "Delete Custom Function"
method: DELETE
path: "/v1/custom_functions/{function_id}"
tags: ["API v1", "Custom Functions", "Custom Functions CRUD"]
---

# Delete Custom Function

`DELETE /v1/custom_functions/{function_id}`

## Request

- Base URL: `https://api.xpander.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.xpander.ai/v1/custom_functions/{function_id}`
- Auth: API key in header `x-api-key`

Permanently delete a custom function. Make sure to remove it from any agents' attached_tools and graph before deleting.

## Path parameters

- `function_id` string, required

## Response `202`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/xpander/apis/xpander-ai-api-service.md) - [All operations](https://skmtc.dev/xpander/apis/xpander-ai-api-service/llms.txt) - [OpenAPI document](https://skmtc.dev/xpander/apis/xpander-ai-api-service/revisions/725c0066d5df?raw)
