Prune Outputs Tool
prune_outputs_toolBulk-delete saved report outputs by choosing exactly one criterion: keep the N newest or remove entries gathered before a date; returns deleted count and IDs.
Instructions
Bulk-prune a report's saved outputs. Returns the count and ids deleted.
Give exactly one criterion: keep_last retains the N most recent outputs and deletes the rest (keep_last=0 deletes them all); before_date deletes every output gathered strictly before that date.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keep_last | No | Retain this many newest outputs, delete older ones | |
| before_date | No | Delete outputs gathered before this date (YYYY-MM-DD) | |
| report_name | Yes | The report whose outputs to prune |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||