feat(cli): add checks delete command#1347
Merged
Merged
Conversation
Adds `checkly checks delete <id>` following the members delete precedent: destructive metadata, confirmation preview with --force and --dry-run, and a friendly NotFoundError message on double-delete. The confirmation and help text warn that project-managed checks are recreated on the next deploy, since the API exposes no way to detect project membership. Closes AI-364 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Contributor
Author
|
Faced this shortcoming in my prompt-onboarding agent flow, so figured it might be good to be added. |
thebiglabasky
approved these changes
Jun 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
checkly checks delete <id>(Linear AI-364), following themembers deleteprecedent from #1329:delete(id)method on theChecksREST class (DELETE /v1/checks/:id).checks deletecommand:destructive/idempotentmetadata, requiredidarg,--forceand--dry-runflags, and the standardconfirmOrAbortpreview (interactive confirmation, agent-mode exit 2 without--force).Check "<id>" not found. It may have already been deleted.message and exit 1.checkly deployand should be removed from project code instead.Test plan
checks-delete.spec.ts: exit 2 without--forcein agent mode, execution with--force,--dry-runpreview, not-found handling, delete failure exit code, metadata.skills/checkly/SKILL.mdin sync.--dry-runresolves the check and prints the preview envelope.🤖 Generated with Claude Code