Ce contenu n'est pas disponible dans la langue sélectionnée.
Chapter 8. Deleting functions
You can delete a function. You can do it using the kn func tool.
8.1. Deleting a function Copier lienLien copié sur presse-papiers!
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 by running the following command:
$ kn func delete [<function_name> -n <namespace> -p <path>]-
If you do not specify the name or path of the function to delete, the system searches the current directory for a
func.yamlfile and uses it to decide which function to delete. -
If the namespace is not specified, it defaults to the
namespacevalue in thefunc.yamlfile.
-
If you do not specify the name or path of the function to delete, the system searches the current directory for a