const options = {
method: 'POST',
headers: {'x-chroma-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({delete_output: true})
};
fetch('https://api.example.com/api/v2/tenants/{tenant}/databases/{database}/collections/{collection_id}/attached_functions/{name}/detach', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));