1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-06 06:46:26 +01:00
Files
openshift-docs/modules/apiserversource-kn-delete.adoc
2020-09-30 19:09:02 +00:00

46 lines
859 B
Plaintext

// Module included in the following assemblies:
//
// serverless/event_workflows/serverless-kn-source.adoc
[id="delete-apiserversource-kn_{context}"]
= Deleting the ApiServerSource using the Knative CLI (`kn`)
This section describes the steps used to delete the ApiServerSource, trigger, service, service account, cluster role, and cluster binding using `kn` and `oc` commands.
.Prerequisites
* You must have the `kn` CLI installed.
.Procedure
. Delete the trigger:
+
[source,terminal]
----
$ kn trigger delete <trigger_name>
----
. Delete the service:
+
[source,terminal]
----
$ kn service delete <service_name>
----
. Delete the event source:
+
[source,terminal]
----
$ kn source apiserver delete <source_name>
----
. Delete the service account, cluster role, and cluster binding:
[source,terminal]
----
$ oc delete -f authentication.yaml
----