This is a cache of https://docs.openshift.com/serverless/1.29/eventing/triggers/delete-triggers-cli.html. It is a snapshot of the page at 2024-11-24T17:05:33.661+0000.
Deleting triggers from the command line - Triggers | Eventing | Red Hat OpenShift Serverless 1.29
×

Using the Knative (kn) cli to delete a trigger provides a streamlined and intuitive user interface.

Deleting a trigger by using the Knative cli

You can use the kn trigger delete command to delete a trigger.

Prerequisites
  • The OpenShift Serverless Operator and Knative Eventing are installed on your OpenShift Container Platform cluster.

  • You have installed the Knative (kn) cli.

  • You have created a project or have access to a project with the appropriate roles and permissions to create applications and other workloads in OpenShift Container Platform.

Procedure
  • Delete a trigger:

    $ kn trigger delete <trigger_name>
Verification
  1. List existing triggers:

    $ kn trigger list
  2. Verify that the trigger no longer exists:

    Example output
    No triggers found.