go/resources/containers/methods/delete/index.md +0 −34 deleted
File Deleted View Diff
1## Delete a container
2
3`client.Containers.Delete(ctx, containerID) error`
4
5**delete** `/containers/{container_id}`
6
7Delete Container
8
9### Parameters
10
11- `containerID 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.Containers.Delete(context.TODO(), "container_id")
30 if err != nil {
31 panic(err.Error())
32 }
33}
34```