# checkly destroy - Checkly Docs

> Destroy all project resources from your Checkly account.

Source: https://www.checklyhq.com/docs/cli/checkly-destroy/

---

Back to top
- Usage
- Command Options
- What Gets Destroyed
- Safety Considerations
- Related Commands

CLI Commands

# checkly destroy

Destroy all project resources from your Checkly account.

The `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

Before using `checkly destroy`, 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 login` if needed)

- A `checkly.config.ts` or `checkly.config.js` configuration file

For additional setup information, see [CLI overview](https://www.checklyhq.com/docs/cli/overview).

This command permanently deletes resources from your Checkly account. This action cannot be undone.

## Usage

The basic command destroys all project resources with a confirmation prompt.
Terminal

```
npx checkly destroy [options]
```

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

string

Specify a particular configuration file to use instead of the default `checkly.config.ts` or `checkly.config.js`. **Usage:** Terminal

```
npx checkly destroy --config=
npx checkly destroy -c=
```

**Examples:** Terminal

```
$ npx checkly destroy --config="./checkly.staging.config.ts"
```

boolean

Skip confirmation dialogs and proceed with the operation. **Usage:** Terminal

```
npx checkly destroy --force
npx checkly destroy -f
```

Use with extreme caution as this command option bypasses safety prompts.

boolean

Available since CLI version `7.10.0`.

Delete the project but preserve all of its resources (checks, groups, alert channels, dashboards, etc.) in your Checkly account. The resources are detached from the CLI project and become regular account-level resources that are no longer managed by the CLI. Use this when you want to stop managing resources as code but keep them running in your account. **Usage:** Terminal

```
npx checkly destroy --preserve-resources
```

**Examples:** Terminal

```
$ npx checkly destroy --preserve-resources --force
```

## What Gets Destroyed

The `destroy` 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)

When run with `--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

```
$ npx checkly destroy

? Are you sure you want to delete all resources in project "Website Monitoring" for account "Monitoring as Code"?
Please confirm by typing the project name "Website Monitoring":
```

## Related Commands

- [`checkly deploy`](https://www.checklyhq.com/docs/cli/checkly-deploy) - Deploy resources to Checkly

- [`checkly test`](https://www.checklyhq.com/docs/cli/checkly-test) - Test your setup before deployment

Was this page helpful?

[Suggest edits](https://github.com/checkly/docs/edit/main/cli/checkly-destroy.mdx)[Raise issue](https://github.com/checkly/docs/issues/new?title=Issue%20on%20docs&body=Path:%20/cli/checkly-destroy)

[checkly deploy Previous](https://www.checklyhq.com/docs/cli/checkly-deploy)[checkly env Next](https://www.checklyhq.com/docs/cli/checkly-env)

[x](https://x.com/checklyhq)[github](https://github.com/checkly)[linkedin](https://linkedin.com/company/checkly)

[Powered by This documentation is built and hosted on Mintlify, a developer documentation platform](https://www.mintlify.com/?utm_campaign=poweredBy&utm_medium=referral&utm_source=checkly-422f444a)
