COA Remove Warehouse Sources (delete scaffolded YAML)
coa_remove_warehouse_sourcesDelete scaffolded source-node YAML files from a Coalesce project to clean up after schema renames or re-onboarding. Requires confirmation and accepts a location filter or all sources.
Instructions
Delete scaffolded source-node YAML files from the project. Wraps coa sources remove --json --yes (the MCP layer handles confirmation; --yes is always passed to the CLI).
DESTRUCTIVE: removes files from disk. Requires confirmed: true. Hand-renamed ("unmanaged") files are reported but NOT removed — the CLI considers them user-owned.
MUST pass exactly one of location or all.
PROFILE LIMITATION: unlike list/add, the underlying coa sources remove does NOT accept a --profile flag in COA 7.35 (errors unknown option '--profile'). Profile resolution falls back to [default] in ~/.coa/config. If that diverges from the agent's intended profile, the agent should temporarily set [default] or wait for the upstream patch.
Usage pattern: when re-onboarding a location or cleaning up after a schema rename. Pair with coa_list_warehouse_sources to confirm scope first.
Args:
projectPath (string, required)
location (string) OR all (boolean): exactly one required
include (string, optional): glob filter (e.g. 'OLD_*')
confirmed (boolean): must be true to execute
Returns: { command, exitCode, stdout, stderr, json?, coaVersion }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||