Files
m3o-go/examples/function/delete/deleteAFunction/main.go
2021-11-03 10:19:08 +00:00

19 lines
320 B
Go
Executable File

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