Skip to content
lumalabs.ai

Delete a file

client.Files.Delete(ctx, fileID) error
DELETE/files/{file_id}

Soft-delete a file. It can no longer be referenced from new generations. Returns 204 with no body.

ParametersExpand Collapse
fileID string
formatuuid

Delete a file

package main

import (
  "context"

  "github.com/lumalabs/luma-agents-go"
  "github.com/lumalabs/luma-agents-go/option"
)

func main() {
  client := lumaagents.NewClient(
    option.WithAuthToken("My Auth Token"),
  )
  err := client.Files.Delete(context.TODO(), "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
  if err != nil {
    panic(err.Error())
  }
}
Returns Examples