Skip to content
For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to the page URL.
Primary navigation

Delete organization spend limit

client.Admin.Organization.SpendLimit.Delete(ctx) (*OrganizationSpendLimitDeleted, error)
DELETE/organization/spend_limit

Delete the organization’s hard spend limit.

ReturnsExpand Collapse
type OrganizationSpendLimitDeleted struct{…}

Confirmation payload returned after deleting an organization hard spend limit.

Deleted bool

Whether the hard spend limit was deleted.

Object OrganizationSpendLimitDeleted

The object type, which is always organization.spend_limit.deleted.

Delete organization spend limit

package main

import (
  "context"
  "fmt"

  "github.com/openai/openai-go"
  "github.com/openai/openai-go/option"
)

func main() {
  client := openai.NewClient(
    option.WithAdminAPIKey("My Admin API Key"),
  )
  organizationSpendLimitDeleted, err := client.Admin.Organization.SpendLimit.Delete(context.TODO())
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", organizationSpendLimitDeleted.Deleted)
}
{
    "object": "organization.spend_limit.deleted",
    "deleted": true
}
Returns Examples
{
    "object": "organization.spend_limit.deleted",
    "deleted": true
}