cwp db rm
shipped 1.0.0cwp db rm <name> [flags]
Local only — it acts on no environment.
| Argument | What it is | Default |
|---|---|---|
<name> | snapshot to remove |
Plus the shared flags --json, --verbose and --dry-run.
What it does
Removes one snapshot, by name.
An unknown name is refused, and the refusal lists the snapshots that do exist — so a typo costs a second rather than a wrong deletion.
Example
cwp db rm before-migration
What it does not do
It never deletes anything you did not name. The name is always passed
through to DDEV, because ddev snapshot --cleanup on its own removes every
snapshot of the project. That is the whole reason this command exists rather
than a documented DDEV incantation.
Uploads are not involved; a snapshot is the database.