Deleting a trigger
To access a trigger, use its name or unique ID. To find them, get a list of triggers in a folder.
Deleting a trigger
Management console
CLI
API
- In the management console, go to the folder where the trigger is located.
- Open Cloud Functions.
- Go to the Triggers tab.
- Select the trigger you want to delete.
- In the upper-right corner of the page, click Delete.
If you don't have the Yandex.Cloud command line interface yet, install and initialize it.
The folder specified in the CLI profile is used by default. You can specify a different folder using the --folder-name
or --folder-id
parameter.
Delete the trigger:
yc serverless trigger delete <trigger name>
Result:
id: dd0gj5tsj2pq9at8ja8i
folder_id: aoek49ghmknnpj1ll45e
created_at: "2019-08-28T12:26:25.675Z"
name: my-trigger
description: My YMQ trigger.
rule:
message_queue:
queue_id: yrn:yc:ymq:ru-central1:aoek49ghmknnpj1ll45e:my-mq
service_account_id: bfbqqeo6jkpls2tse5o6
batch_settings:
size: "10"
cutoff: 10s
invoke_function:
function_id: b09e5lu91ta21vdrrgma
function_tag: $latest
service_account_id: bfbqqeo6jkpls2tse5o6
status: PAUSED
You can delete a trigger using the delete API method.