Skip to content

Latest commit

 

History

History
63 lines (48 loc) · 1.36 KB

File metadata and controls

63 lines (48 loc) · 1.36 KB
title Delete Function
description Delete a function by ID or name

Request

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();

Path Parameters

Function ID (UUID) or name

Response

Returns the deleted function's ID and a confirmation flag.

ID of the deleted function Always `true` for successful deletions

Example Response

{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "deleted": true
}

Notes

Deleting a function that is referenced by a sink will fail with a foreign key constraint error. Remove the function from any sinks before deleting it.