cleanup_scans
Remove older disk scans from the database to free up storage by keeping only a specified number of the most recent scans.
Instructions
Remove older scans from the database to free up space.
Keeps the N most recent scans and deletes everything older. Entries are cascade-deleted when their parent scan is removed.
Args: keep_latest: Number of most recent scans to keep (default 5, min 1). ctx: MCP context (injected automatically).
Returns: Report of which scans were deleted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keep_latest | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |