Delete File
delete_fileDelete a file from a MikroTik router filesystem by name. Use dry run to preview and confirmation token to approve destructive deletions.
Instructions
Delete a file from the router filesystem by name. Idempotent: returns not_found gracefully if the file does not exist.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| routerId | No | Router ID; omit to use the default router. | |
| name | Yes | Exact file name on the router (e.g. flash/backup.backup) | |
| dryRun | No | Preview deletion without removing the file | |
| confirmationToken | No | Token from a prior APPROVAL_REQUIRED response. Re-submit the identical call with this token to confirm the destructive action. |