This is a cache of https://docs.openshift.com/serverless/1.30/functions/serverless-functions-deleting.html. It is a snapshot of the page at 2024-11-26T16:59:30.811+0000.
Deleting functions | Functions | Red Hat OpenShift Serverless 1.30
×

You can delete a function. You can do it using the kn func tool.

Deleting a function

You can delete a function by using the kn func delete command. This is useful when a function is no longer required, and can help to save resources on your cluster.

Procedure
  • Delete a function:

    $ 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.