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(RequestOptionsoptions?): OrganizationSpendLimitDeleted { deleted, object }
DELETE/organization/spend_limit

Delete the organization’s hard spend limit.

ReturnsExpand Collapse
OrganizationSpendLimitDeleted { deleted, object }

Confirmation payload returned after deleting an organization hard spend limit.

deleted: boolean

Whether the hard spend limit was deleted.

object: "organization.spend_limit.deleted"

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

Delete organization spend limit

import OpenAI from 'openai';

const client = new OpenAI({
  adminAPIKey: process.env['OPENAI_ADMIN_KEY'], // This is the default and can be omitted
});

const organizationSpendLimitDeleted = await client.admin.organization.spendLimit.delete();

console.log(organizationSpendLimitDeleted.deleted);
{
    "object": "organization.spend_limit.deleted",
    "deleted": true
}
Returns Examples
{
    "object": "organization.spend_limit.deleted",
    "deleted": true
}