Files
m3o-go/examples/function/delete/deleteAFunction.go
2021-12-16 19:51:32 +00:00

18 lines
311 B
Go
Executable File

package example
import (
"fmt"
"os"
"go.m3o.com/function"
)
// Delete a function by name
func DeleteAfunction() {
functionService := function.NewFunctionService(os.Getenv("M3O_API_TOKEN"))
rsp, err := functionService.Delete(&function.DeleteRequest{
Name: "my-first-func",
})
fmt.Println(rsp, err)
}