Deleting a function

You can delete a function from your cluster by using the kn func delete command.

  • Delete a function:

    $ kn func delete <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 can be used to determine the function to delete.

    • If the namespace is not specified, this defaults to the namespace value in the func.yaml file.