Skip to main content
DELETE/functions/{name}/triggers/{triggerId}

Delete Function Trigger

Permanently removes the EVENT trigger triggerId from the named function, so writes to its collection no longer invoke the function.

A scheduled trigger's id is 404 K9O_TRIGGER_NOT_FOUND here; delete schedules with DELETE /@{projectSlug}/forge/schedules/{trgId}.

Requires PROJECT_ADMIN.

Parameters
name *path

The function's name.

A module's operation is named <module>:<operation>.

triggerId *path

The trigger's id, a UUID.

projectSlug *path

The project's slug: the path segment after @.

It is unique within the org.

Responses
HTTPK9O CodeDescription
204The trigger was deleted. No body.
400K9O_INVALID_FIELD_VALUEThe project slug, the function name or the trigger id is not a valid identifier.
401K9O_UNAUTHENTICATEDThe caller presented no authenticated session.
403K9O_ACCESS_DENIEDThe caller has no access to this project.
403K9O_IAM_POLICY_DENIEDThe bound IAM policy ceiling denies deleting function triggers; the default floor is PROJECT_ADMIN.
404K9O_FUNCTION_NOT_FOUNDNo function with that name exists in this project, or it is retired.
404K9O_TRIGGER_NOT_FOUNDNo event trigger with that id is attached to this function (a scheduled trigger's id is not found here).
TypeScript
// const k9o = new K9o({ orgSlug: 'playground', projectSlug: 'storefront', apiKey: 'k9o_…' })
const { data } = await k9o.functions.triggers.delete('greet', '3f6c1e2a-8b4d-4c7e-9a1f-2d5b6c7e8f90')

Showing example in TypeScript

More in Compute & Automation