delete_chart_files
Delete chart preview HTML files saved in the system temp folder. Specify chart IDs, delete files older than a given number of days, or remove all chart files with explicit confirmation.
Instructions
Delete chart preview HTML files saved on disk (in the system temp folder). REQUIRES the user's explicit instruction to run - it deletes files from disk and cannot be undone. Provide at least one of: chartIds (specific file IDs to delete), olderThanDays (bulk delete by age), or all=true (delete every chart file). Scope is hard-locked to mcp-dashboards temp folder; cannot touch anything else. Returns lists of successfully deleted files and per-file failures (e.g. files currently locked by an open browser).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | Explicit confirmation to delete ALL chart files in the temp folder. Defaults to false. | |
| chartIds | No | Specific chart IDs to delete (12-char hex strings). Each must match /^[a-f0-9]{12}$/ or it is rejected. | |
| olderThanDays | No | Delete chart files older than N days (positive integer). |