Files
m3o-go/examples/function/delete/deleteAFunction.go
2021-10-29 10:44:29 +00:00

19 lines
334 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",
Project: "tests",
})
fmt.Println(rsp, err)
}