caddy_remove_route
Remove a Caddy route by stable @id or by index, with confirmation required.
Instructions
Remove a route. Target by @id (preferred — stable across reorderings) or by array index on a specific server. Index-based removal is a two-step read-then-delete and can race against concurrent edits; prefer @id when possible.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The @id of the route to remove (preferred — stable even if routes get reordered) | |
| index | No | Zero-based index of the route in the server's routes array (only used if id is not provided) | |
| server | No | Caddy server name when using index (default: srv0). Ignored when id is provided. | srv0 |
| confirm | No | Must be true to actually remove the route (safety) |