Skip to content
Get started

Delete a document

client.Documents.Delete(ctx, id) error
delete/documents/{id}

Soft delete a document (marks as deleted but preserves data)

ParametersExpand Collapse
id string
Delete a document
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.Documents.Delete(context.TODO(), "id")
  if err != nil {
    panic(err.Error())
  }
}
Returns Examples