1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/delete-function-kn.adoc
Ashleigh Brennan a535c0126c Add kn func CLI docs
2021-05-20 17:37:48 +00:00

20 lines
637 B
Plaintext

// Module included in the following assemblies
// * /serverless/cli_reference/kn-func-ref.adoc
[id="delete-function-kn_{context}"]
= Deleting a function
You can delete a function from your cluster by using the `kn func delete` command.
.Procedure
* Delete a function:
+
[source,terminal]
----
$ kn func delete [<function_name> -n <namespace> -p <path>]
----
** If the name or path of the function to delete is not specified, the current directory is searched for a `func.yaml` file that is used to determine the function to delete.
** If the namespace is not specified, it defaults to the `namespace` value in the `func.yaml` file.