Skip to content

feat(quota): split --delete into a dedicated quota delete command - #186

Closed
gujieye wants to merge 1 commit into
mainfrom
feat/quota-delete-split
Closed

feat(quota): split --delete into a dedicated quota delete command#186
gujieye wants to merge 1 commit into
mainfrom
feat/quota-delete-split

Conversation

@gujieye

@gujieye gujieye commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator

Summary

The destructive --delete flag previously lived on bl quota update, but the --yes high-risk confirmation guards command paths rather than individual flags. This PR promotes the flag to its own command:

  • New bl quota delete --model <model> [--yes] — clears all custom QPM/TPM limits via the model-limits API (operation_type: "DELETE"), with the same --yes confirmation guardrail as finetune/deploy/dataset delete. --dry-run emits the DELETE request shape.
  • bl quota update is reduced to QPM/TPM updates only: the --delete/--yes flags, related notes, and examples are removed; validation returns to "one of --rpm / --tpm is required"; a note points users to quota delete.
  • quota request remains a backward-compatible alias of quota update.

Breaking change

quota update --delete no longer parses and now errors with Unknown flag "--delete". Use quota delete instead.

Test plan

  • pnpm run check (format + lint + typecheck) passes
  • vp test packages/commands/tests/e2e/quota.e2e.test.ts — help/validation/dry-run/non-TTY confirm cases for both commands
  • vp test packages/cli/tests/e2e/registry.smoke.e2e.test.ts — 204 passing
  • Live POSTs are intentionally not covered by e2e (they would mutate account limits); only dry-run shapes are asserted

The destructive --delete flag sat on "quota update", but the --yes
high-risk confirmation guards command paths rather than individual flags.
Promote it to its own "quota delete" command with a --yes guardrail, and
reduce "quota update" to QPM/TPM updates only.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants