Skip to main content
POST
/
api
/
v2
/
tenants
/
{tenant}
/
databases
/
{database}
/
collections
/
{collection_id}
/
attached_functions
/
{name}
/
detach
Detach a function
curl --request POST \
  --url https://api.trychroma.com/api/v2/tenants/{tenant}/databases/{database}/collections/{collection_id}/attached_functions/{name}/detach \
  --header 'Content-Type: application/json' \
  --header 'x-chroma-token: <api-key>' \
  --data '
{
  "delete_output": true
}
'
{
  "success": true
}

Authorizations

x-chroma-token
string
header
required

Path Parameters

tenant
string
required

Tenant ID

database
string
required

Database name

collection_id
string
required

Input collection ID

name
string
required

Attached function name

Body

application/json
delete_output
boolean

Whether to delete the output collection as well

Response

Function detached successfully

success
boolean
required