---
title: "Delete UDF"
method: DELETE
path: "/v1/organizations/{organizationId}/udfs/{functionName}"
tags: ["UDF"]
---

# Delete UDF

`DELETE /v1/organizations/{organizationId}/udfs/{functionName}`

## Request

- Base URL: `https://api.clickhouse.cloud`
- URL: `https://api.clickhouse.cloud/v1/organizations/{organizationId}/udfs/{functionName}`
- Auth: HTTP basic

Deletes every version of a UDF and detaches it from all services. Removal from services completes asynchronously.

## Path parameters

- `organizationId` string, uuid, required: ID of the requested organization.
- `functionName` string, required: Name of the UDF.

## Response `200`

UDF deleted.

- object
  - `status` integer, required: HTTP status code.
  - `requestId` string, uuid, required: Unique id assigned to every request. UUIDv4

## Other responses

- `400`: The request cannot be processed due to a client error. Please verify your request parameters and try again.
- `404`: UDF not found.
- `409`: A UDF version is still building.
- `500`: An internal server error has occurred. If this issue persists, please contact ClickHouse Cloud support for assistance.

## Changes

- **2026-11-16** `4e1eec98567b`: 2 info
  - the security scope `control-plane:organization:manage-udfs` was added to the endpoint's security scheme `basicAuth`
  - the security scope `control-plane:organization:manage` was removed from the endpoint's security scheme `basicAuth`

[Operation history](https://skmtc.dev/clickhouse/apis/openapi-spec-for-clickhouse-cloud/changes/v1/organizations/:organizationId/udfs/:functionName/delete.md)

---

[API](https://skmtc.dev/clickhouse/apis/openapi-spec-for-clickhouse-cloud.md) - [All operations](https://skmtc.dev/clickhouse/apis/openapi-spec-for-clickhouse-cloud/llms.txt) - [OpenAPI document](https://skmtc.dev/clickhouse/apis/openapi-spec-for-clickhouse-cloud/revisions/eac345053548?raw)
