── CLI REFERENCE ──

exo clean

Remove all files and directories generated by Exo from the current project.

## Synopsis

bash
exo clean [--yes]

## Description

Reads .exo.yaml and removes all infrastructure assets that Exo would have generated — Dockerfiles, Terraform directories, Kubernetes manifests, CI pipelines, Helm charts, monitoring configs, and project files.

By default, prompts for confirmation before deleting anything. Pass --yes to skip the prompt (useful in CI). The .exo.yaml config file itself is not removed.

## Flags

FlagDescription
--yesSkip the confirmation prompt and delete immediately

## What Gets Removed

AssetPath
DockerfileDockerfile
Docker Composedocker-compose.*.yml
Terraforminfra/<provider>/
Kubernetesk8s/
Helm Chartcharts/<name>/
CI/CD.github/workflows/ci.yml, .gitlab-ci.yml
Monitoringmonitoring/, grafana_dashboard.json, alerts.yml
Project filesMakefile, .env.example, .gitignore

## Examples

Interactive (with confirmation)

bash
$ exo clean
The following will be deleted:
Dockerfile, k8s/, infra/aws/, .github/workflows/ci.yml
Proceed? [y/N]: y
Cleaned 4 items.

Non-interactive (CI/CD)

bash
exo clean --yes

Clean and regenerate with new config

bash
# Switch from AWS to GCP
exo clean --yes
# Edit .exo.yaml: provider: gcp
exo init --non-interactive

## Notes

!.exo.yaml is preserved — it is never deleted by clean
!Your application source code is never touched
→Use exo status first to see exactly what exists before cleaning
→Use exo diff to preview new output before regenerating