go/resources/responses/methods/delete/index.md +0 −34 deleted
File Deleted View Diff
1## Delete a model response
2
3`client.Responses.Delete(ctx, responseID) error`
4
5**delete** `/responses/{response_id}`
6
7Deletes a model response with the given ID.
8
9### Parameters
10
11- `responseID string`
12
13### Example
14
15```go
16package main
17
18import (
19 "context"
20
21 "github.com/openai/openai-go"
22 "github.com/openai/openai-go/option"
23)
24
25func main() {
26 client := openai.NewClient(
27 option.WithAPIKey("My API Key"),
28 )
29 err := client.Responses.Delete(context.TODO(), "resp_677efb5139a88190b512bc3fef8e535d")
30 if err != nil {
31 panic(err.Error())
32 }
33}
34```