| title | Delete Function |
|---|---|
| description | Delete a function by ID or name |
You can delete a function by either its ID or name.
```bash cURL (by ID) curl -X DELETE "https://api.sequinstream.com/api/functions/550e8400-e29b-41d4-a716-446655440000" \ -H "Authorization: Bearer YOUR_API_TOKEN" ```curl -X DELETE "https://api.sequinstream.com/api/functions/my-filter" \
-H "Authorization: Bearer YOUR_API_TOKEN"const response = await fetch('https://api.sequinstream.com/api/functions/my-filter', {
method: 'DELETE',
headers: {
'Authorization': 'Bearer YOUR_API_TOKEN'
}
});
const result = await response.json();Returns the deleted function's ID and a confirmation flag.
ID of the deleted function Always `true` for successful deletions{
"id": "550e8400-e29b-41d4-a716-446655440000",
"deleted": true
}