This is a cache of https://docs.openshift.com/container-platform/4.9/serverless/eventing/triggers/delete-triggers-cli.html. It is a snapshot of the page at 2024-11-25T19:45:01.547+0000.
Deleting triggers from the command line - Eventing | Serverless | OpenShift Container Platform 4.9
×

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.