Delete a file. This cannot be undone.
Delete a file
package main
import (
"context"
"fmt"
"github.com/deeptable-com/deeptable-go"
"github.com/deeptable-com/deeptable-go/option"
)
func main() {
client := deeptable.NewClient(
option.WithAPIKey("My API Key"),
)
file, err := client.Files.Delete(context.TODO(), "file_01kfxgjd94fn9stqm414vjb0s8")
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", file.ID)
}
{
"id": "file_01kfxgjd94fn9stqm414vjb0s8",
"deleted": true,
"object": "file"
}Returns Examples
{
"id": "file_01kfxgjd94fn9stqm414vjb0s8",
"deleted": true,
"object": "file"
}