cleanup_old_ranges
Delete test and temporary ranges while preserving production ranges for specified users. Requires confirmation to prevent accidental deletion.
Instructions
Delete all ranges EXCEPT those belonging to specified users.
Useful for cleaning up test/temporary ranges while keeping production ones.
Args: keep_user_ids: List of user IDs whose ranges should be KEPT (not deleted) confirm: Must be set to True to actually delete (safety measure)
Returns: Deletion results
Example: # Keep ranges for 'admin' and 'tjnull', delete all others result = await cleanup_old_ranges( keep_user_ids=["admin", "tjnull"], confirm=True )
Safety: - Requires confirm=True to prevent accidental deletion - Shows preview of what will be deleted - Explicitly protects specified user ranges
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keep_user_ids | Yes | ||
| confirm | No |