cwp projects rm
shipped 1.0.0cwp projects rm <name> [flags]
Local only: it acts on no environment.
| Argument | What it is | Default |
|---|---|---|
<name> | registered project name |
| Flag | What it does | Default |
|---|---|---|
--with-agent | with —dry-run on a host with no shell: install and remove the PHP agent so the plan is real | off |
Plus the shared flags --json, -v, --verbose, -q, --quiet and --dry-run.
What it does
projects rm removes one entry from the machine-level project registry.
The registry entry only. It touches nothing on disk, so it asks for no confirmation. The name sounds destructive and the command does less.
It is the fix cwp projects suggests for an entry whose path no
longer exists.
Example
cwp projects rm old-experiment
cwp projects rm old-experiment --dry-run # says what it would drop
What it does not do
It does not delete a project: no directory, no config, no database, no remote.
It removes a line from ~/.config/cwp/config.yml.
It honours --dry-run, unlike the two read-only forms. This page says so
because the dry-run gate lives in the subprocess runner and this write is a
plain file. Here “nothing ran” and “nothing changed” are not the same
sentence.