Delete an entity
client.Entities.Delete(ctx, id) error
/entities/{id}
Delete an entity and all of it's related data
Parameters
id string
Delete an entity
package main
import (
"context"
"github.com/withluminary/go-sdk"
"github.com/withluminary/go-sdk/option"
)
func main() {
client := withluminary.NewClient(
option.WithClientID("My Client ID"),
option.WithClientSecret("My Client Secret"),
)
err := client.Entities.Delete(context.TODO(), "id")
if err != nil {
panic(err.Error())
}
}