---
title: "Delete one budget"
method: DELETE
path: "/admin/budgets"
tags: ["admin"]
---

# Delete one budget

`DELETE /admin/budgets`

## Request body

- AdminDeleteBudgetRequest
  - `budget_key` union, required
    - object
      - `period` string, required
      - `period_seconds` integer
    - object
      - `period` string
      - `period_seconds` integer, required
  - `scope` string
  - `subject` string
  - `user_path` string

## Response `200`

OK

- AdminBudgetListResponse
  - `budgets` AdminBudgetStatusResponse[]
    - `amount` number
    - `created_at` string
    - `has_usage` boolean
    - `last_reset_at` string
    - `period_end` string
    - `period_label` string
    - `period_ratio` number
    - `period_seconds` integer
    - `period_start` string
    - `remaining` number
    - `scope` string
    - `source` string
    - `spent` number
    - `subject` string
    - `updated_at` string
    - `usage_ratio` number
    - `user_path` string
  - `server_time` string

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `503` — Service Unavailable

---

[API](https://skmtc.net/enterpilot/apis/gomodel-api.md) · [All operations](https://skmtc.net/enterpilot/apis/gomodel-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/enterpilot/gomodel-api/revisions/a9c84e4d4f3d/schema)
