delete_config_path
Delete a Caddy config subtree with reversible capture for undo; preview changes using dry_run and avoid admin/root paths that would break server access.
Instructions
[WRITE][risk=high] Delete a caddy config subtree; reversible — the subtree is captured first and the undo re-creates it.
Pass dry_run=True to preview.
Refuses the 'admin' subtree and the config root: both remove the admin API this tool speaks to, leaving the undo with no way to reach the server. The refusal applies under dry_run too, which must report it rather than preview a call that will be refused.
Args: path: Slash-separated config path to delete. dry_run: If True, preview without deleting. target: Proxy target name from config; omit for the default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| target | No | ||
| dry_run | No |