delete_config_path
Delete a Caddy configuration subtree with undo support. Preview changes with dry-run before applying; refuses to remove admin or root paths.
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 |