| name | bulk-operations |
| description | Use when performing bulk operations like cleanup, delete-all, or bulk messaging |
Entry Points
src/commands/delete.ts - delete-all command
src/commands/cleanup.ts - Orphaned resource cleanup
src/lib/bulk-messenger.ts - Bulk messaging
Commands
lettactl delete-all --pattern <regex> [-y]
lettactl delete-all --all [-y]
lettactl cleanup [--blocks] [--folders] [--files] [--tools] [--dry-run] [-y]
lettactl send --all <message>
lettactl send --pattern <regex> <message>
Pattern Matching
- Case-insensitive regex against agent names
^test- - starts with "test-"
.*-dev$ - ends with "-dev"
prod - contains "prod"
Examples
lettactl delete-all --pattern "^test-" -y
lettactl cleanup --dry-run
lettactl cleanup --blocks -y
lettactl cleanup -y
lettactl send --all "System maintenance at 2am UTC"
lettactl send --pattern "^prod-" "Health check"
Safety
delete-all and cleanup require confirmation unless -y
--dry-run previews without executing
- Protected tools cannot be deleted