Cleanup Applier
Quick start
- •Confirm explicit approval before any destructive action.
- •Run
scripts/gmail_apply_cleanup.pyin dry-run mode. - •Review the log output and confirm before re-running with
--approve. - •Apply archive/label or trash actions as configured.
- •If using
--trash, optionally send a summary email with--email-summary --summary-to.
Safety rules
- •Default to archive + label; trash only with explicit approval.
- •Create labels only when approved.
- •Keep an action log for audit and rollback context.
- •Send deletion summaries only after approval and when trash is enabled.
Resources
- •
scripts/gmail_apply_cleanup.py: Apply archive/trash/label actions. - •
scripts/gmail_api.py: OAuth helper. - •
references/cleanup-actions.md: Cleanup options and guidance. - •
references/gmail-api-setup.md: OAuth setup steps and scopes.