TheDocumentation Index
Fetch the complete documentation index at: https://checkly-422f444a-api-doc-cancel-cancel-a-check-run-check-se.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
checkly destroy command removes all resources associated with your project from your Checkly account, including checks, check groups, alert channels, maintenance windows, and other project-defined resources.
Prerequisites
Prerequisites
Before using , ensure you have:
- An initialized Checkly CLI project
- At least one check or resource defined in your project
- Valid Checkly account authentication (run
npx checkly loginif needed) - A
checkly.config.tsorcheckly.config.jsconfiguration file
Usage
The basic command destroys all project resources with a confirmation prompt.Terminal
| Option | Required | Description |
|---|---|---|
--config, -c | - | The Checkly CLI configuration file. If not passed, uses the checkly.config.ts|js file in the current directory. |
--force, -f | - | Force mode. Skips the confirmation dialog. |
--preserve-resources | - | Delete only the project, detaching its resources so they remain in your Checkly account. |
Command Options
Specify a particular configuration file to use instead of the default Examples:
checkly.config.ts or checkly.config.js.Usage:Terminal
Terminal
Skip confirmation dialogs and proceed with the operation.Usage:
Terminal
Available since CLI version
7.10.0.Terminal
Terminal
What Gets Destroyed
Thedestroy command removes the all the resources managed by the specified project. These resources could include:
- Checks (API, Browser, Heartbeat, etc.)
- Monitors (URL, TCP, DNC, etc.)
- Check Groups and their configurations
- Alert Channels defined in your project
- Maintenance Windows created via CLI
- Private Locations (if managed by the project)
--preserve-resources, only the project itself is deleted. All of the above resources remain in your Checkly account as regular account-level resources and are no longer tracked by the CLI.
Safety Considerations
By default, the command prompts for confirmation:Terminal
Related Commands
checkly deploy- Deploy resources to Checklycheckly test- Test your setup before deployment