Undeploy a function
Undeploy a function
This command undeploys a function from the cluster. By default the function from the project in the current directory is undeployed. Alternatively either the name of the function can be given as argument or the project path provided with --path.
No local files are deleted.
func delete [NAME]
# Undeploy the function defined in the local directory
func delete
# Undeploy the function 'myfunc' in namespace 'apps'
func delete -n apps myfunc
-a, --all string Delete all resources created for a function, eg. Pipelines, Secrets, etc. (Env: $FUNC_ALL) (allowed values: "true", "false") (default "true")
-c, --confirm Prompt to confirm all configuration options (Env: $FUNC_CONFIRM)
-h, --help help for delete
-p, --path string Path to the project directory (Env: $FUNC_PATH) (default ".")
-n, --namespace string The namespace on the cluster used for remote commands. By default, the namespace func.yaml is used or the currently active namespace if not set in the configuration. (Env: $FUNC_NAMESPACE)
-v, --verbose Print verbose logs ($FUNC_VERBOSE)
- func - Serverless functions