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

OrganizationSpendLimitDeleted admin().organization().spendLimit().delete(SpendLimitDeleteParamsparams = SpendLimitDeleteParams.none(), RequestOptionsrequestOptions = RequestOptions.none())
DELETE/organization/spend_limit

Delete the organization’s hard spend limit.

ParametersExpand Collapse
SpendLimitDeleteParams params
ReturnsExpand Collapse
class OrganizationSpendLimitDeleted:

Confirmation payload returned after deleting an organization hard spend limit.

boolean deleted

Whether the hard spend limit was deleted.

JsonValue; object_ "organization.spend_limit.deleted"constant"organization.spend_limit.deleted"constant

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

Delete organization spend limit

package com.openai.example;

import com.openai.client.OpenAIClient;
import com.openai.client.okhttp.OpenAIOkHttpClient;
import com.openai.models.admin.organization.spendlimit.OrganizationSpendLimitDeleted;
import com.openai.models.admin.organization.spendlimit.SpendLimitDeleteParams;

public final class Main {
    private Main() {}

    public static void main(String[] args) {
        OpenAIClient client = OpenAIOkHttpClient.fromEnv();

        OrganizationSpendLimitDeleted organizationSpendLimitDeleted = client.admin().organization().spendLimit().delete();
    }
}
{
    "object": "organization.spend_limit.deleted",
    "deleted": true
}
Returns Examples
{
    "object": "organization.spend_limit.deleted",
    "deleted": true
}