Delete a spend limit
Removes the limit for the product and period. For inference, which has no default limit, the product becomes unlimited for the period and the period’s block is lifted (evaluation.released). The response carries limit: null and the effective_limit_usd that applies after the removal. Returns 404 when no limit is set.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
await client.spendLimits.delete('product');import os
from telnyx import Telnyx
client = Telnyx(
api_key=os.environ.get("TELNYX_API_KEY"), # This is the default and can be omitted
)
client.spend_limits.delete(
"product",
)
package main
import (
"context"
"github.com/team-telnyx/telnyx-go"
"github.com/team-telnyx/telnyx-go/option"
)
func main() {
client := telnyx.NewClient(
option.WithAPIKey("My API Key"),
)
err := client.SpendLimits.Delete(
context.TODO(),
"product",
)
if err != nil {
panic(err.Error())
}
}
package com.telnyx.sdk.example;
import com.telnyx.sdk.client.TelnyxClient;
import com.telnyx.sdk.client.okhttp.TelnyxOkHttpClient;
public final class Main {
private Main() {}
public static void main(String[] args) {
TelnyxClient client = TelnyxOkHttpClient.fromEnv();
client.spendLimits().delete("product");
}
}require "telnyx"
telnyx = Telnyx::Client.new(api_key: "My API Key")
spend_limit = telnyx.spend_limits.delete("product")
puts(spend_limit)<?php
require_once dirname(__DIR__) . '/vendor/autoload.php';
use Telnyx\Client;
use Telnyx\Core\Exceptions\APIException;
$client = new Client(apiKey: getenv('TELNYX_API_KEY') ?: 'My API Key');
try {
$spend_limit = $client->spendLimits->delete(
'product',
);
var_dump($spend_limit);
} catch (APIException $e) {
echo $e->getMessage();
}telnyx spend-limits delete \
--api-key 'My API Key' \
--product inferencecurl --request DELETE \
--url https://api.telnyx.com/v2/spend_limits/{product} \
--header 'Authorization: Bearer <token>'{
"data": {
"record_type": "spend_limit",
"product": "inference",
"product_name": "Inference",
"period": "daily",
"period_start": "2026-09-24",
"period_end": "2026-09-25",
"limit": null,
"effective_limit_usd": null,
"spend_usd": "12.80",
"spend_error": null,
"blocked": false,
"block": null,
"evaluation": {
"spend_usd": null,
"released": true,
"blocked_now": false,
"still_over_limit": false,
"still_blocked_other_period": false,
"evaluation_deferred": false
}
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Product the limit applies to, as returned in product by the list operation.
"inference"
Query Parameters
Limit period. Defaults to daily; send it explicitly.
daily is the current UTC day; monthly is the current UTC calendar month.
daily, monthly "daily"
Why the limit is removed, kept for audit. At most 500 characters.
500Response
The limit was deleted. evaluation says whether a block was lifted.
The spend limit, spend and block state of one product and period.
Show child attributes
Show child attributes
Was this page helpful?
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
await client.spendLimits.delete('product');import os
from telnyx import Telnyx
client = Telnyx(
api_key=os.environ.get("TELNYX_API_KEY"), # This is the default and can be omitted
)
client.spend_limits.delete(
"product",
)
package main
import (
"context"
"github.com/team-telnyx/telnyx-go"
"github.com/team-telnyx/telnyx-go/option"
)
func main() {
client := telnyx.NewClient(
option.WithAPIKey("My API Key"),
)
err := client.SpendLimits.Delete(
context.TODO(),
"product",
)
if err != nil {
panic(err.Error())
}
}
package com.telnyx.sdk.example;
import com.telnyx.sdk.client.TelnyxClient;
import com.telnyx.sdk.client.okhttp.TelnyxOkHttpClient;
public final class Main {
private Main() {}
public static void main(String[] args) {
TelnyxClient client = TelnyxOkHttpClient.fromEnv();
client.spendLimits().delete("product");
}
}require "telnyx"
telnyx = Telnyx::Client.new(api_key: "My API Key")
spend_limit = telnyx.spend_limits.delete("product")
puts(spend_limit)<?php
require_once dirname(__DIR__) . '/vendor/autoload.php';
use Telnyx\Client;
use Telnyx\Core\Exceptions\APIException;
$client = new Client(apiKey: getenv('TELNYX_API_KEY') ?: 'My API Key');
try {
$spend_limit = $client->spendLimits->delete(
'product',
);
var_dump($spend_limit);
} catch (APIException $e) {
echo $e->getMessage();
}telnyx spend-limits delete \
--api-key 'My API Key' \
--product inferencecurl --request DELETE \
--url https://api.telnyx.com/v2/spend_limits/{product} \
--header 'Authorization: Bearer <token>'{
"data": {
"record_type": "spend_limit",
"product": "inference",
"product_name": "Inference",
"period": "daily",
"period_start": "2026-09-24",
"period_end": "2026-09-25",
"limit": null,
"effective_limit_usd": null,
"spend_usd": "12.80",
"spend_error": null,
"blocked": false,
"block": null,
"evaluation": {
"spend_usd": null,
"released": true,
"blocked_now": false,
"still_over_limit": false,
"still_blocked_other_period": false,
"evaluation_deferred": false
}
}
}