drop_index
Drop a database index safely by capturing its definition for undo, with dry-run preview to avoid accidental changes.
Instructions
[WRITE][risk=high] Drop an index. Reversible: captures its definition first.
Before dropping, the exact index definition is rebuilt from SHOW CREATE TABLE so the harness records an undo that recreates it. Pass dry_run=True to preview.
Args: table: Table the index belongs to (optionally schema-qualified). name: Index name to drop. dry_run: If True, preview without dropping. target: Target name from config; omit for the default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| table | Yes | ||
| target | No | ||
| dry_run | No |