Skip to content
Get started

Delete an entity

client.Entities.Delete(ctx, id) error
delete/entities/{id}

Delete an entity and all of it's related data

ParametersExpand Collapse
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())
  }
}
Returns Examples