[Yandex Cloud documentation](../../../index.md) > [Yandex API Gateway](../../index.md) > [Step-by-step guides](../index.md) > Managing a trigger > Deleting a trigger

# Deleting a trigger in Yandex API Gateway

{% list tabs group=instructions %}

- Management console {#console}

    1. In the [management console](https://console.yandex.cloud), navigate to the folder containing the trigger.
    1. Navigate to **API Gateway**.
    1. In the left-hand panel, select ![image](../../../_assets/console-icons/gear-play.svg) **Triggers**.
    1. Select the trigger you want to delete.
    1. In the top-right corner of the page, click **Delete**.
    1. In the window that opens, click **Delete**.
    
- CLI {#cli}
  
    If you do not have the Yandex Cloud CLI yet, [install and initialize it](../../../cli/quickstart.md#install).
    
    The folder used by default is the one specified when [creating](../../../cli/operations/profile/profile-create.md) the CLI profile. To change the default folder, use the `yc config set folder-id <folder_ID>` command. You can also specify a different folder for any command using `--folder-name` or `--folder-id`. If you access a resource by its name, the search will be limited to the default folder. If you access a resource by its ID, the search will be global, i.e., through all folders based on access permissions.

    To find out the name or ID of a trigger, [get](../../../serverless-containers/operations/trigger-list.md) the list of triggers in the folder.
    
    Delete the trigger:
    
    ```bash
    yc serverless trigger delete <trigger_name>
    ```

    Result:
    
    ```text
    id: a1s5msktijh2********
    folder_id: b1gmit33hgh2********
    created_at: "2022-10-24T15:19:15.353909857Z"
    name: timer-test
    rule:
      timer:
        cron_expression: 5 10 ? * * *
        gateway_websocket_broadcast:
          gateway_id: d4eofc7n0mh2********
          path: /
          service_account_id: aje3932acdh2********
    status: PAUSED
    ```

- API {#api}

  To delete a trigger, use the [delete](../../triggers/api-ref/Trigger/delete.md) REST API method for the [Trigger](../../triggers/api-ref/Trigger/index.md) resource or the [TriggerService/Delete](../../triggers/api-ref/grpc/Trigger/delete.md) gRPC API call.

{% endlist %}