operationId: functions_delete_trigger
summary: Delete Trigger
description: >-
Deletes the given trigger.
To delete trigger, send a DELETE request to `/v2/functions/namespaces/$NAMESPACE_ID/triggers/$TRIGGER_NAME`.
A successful deletion returns a 204 response.
tags:
- Functions
parameters:
- $ref: 'parameters.yml#/namespace_id'
- $ref: 'parameters.yml#/trigger_name'
responses:
'204':
$ref: '../../shared/responses/no_content.yml'
'401':
$ref: '../../shared/responses/unauthorized.yml'
'404':
$ref: 'responses/trigger_not_found.yml'
'429':
$ref: '../../shared/responses/too_many_requests.yml'
'500':
$ref: '../../shared/responses/server_error.yml'
default:
$ref: '../../shared/responses/unexpected_error.yml'
x-codeSamples:
- $ref: 'examples/curl/delete_trigger.yml'
- $ref: 'examples/python/delete_trigger.yml'
security:
- bearer_auth:
- 'function:delete'
- 'function:admin'