maintenance
Perform system maintenance operations including cleaning expired database entries, removing old local files, checking storage quotas, and resolving database inconsistencies to optimize performance.
Instructions
Perform maintenance operations following workflows.md patterns.
Available operations:
cleanup_expired: Remove expired Files API entries from database
cleanup_local: Clean old local files based on age/LRU
check_quota: Check Files API storage usage vs. ~20GB budget
database_hygiene: Clean up database inconsistencies
full_cleanup: Run all cleanup operations in sequence
Input Schema
Name | Required | Description | Default |
---|---|---|---|
dry_run | No | If true, only report what would be done without making changes | |
keep_count | No | For local cleanup: minimum number of recent files to keep | |
max_age_hours | No | For local cleanup: maximum age in hours (default: 168 = 1 week) | |
operation | Yes | Maintenance operation to perform: 'cleanup_expired', 'cleanup_local', 'check_quota', 'database_hygiene', 'full_cleanup' |