← Back to library

Clear years of old promo email with approval and a log

While Anand napped, his Muse agent sorted roughly 80,000 emails in an old Hotmail account, deleting over 20,000 old promotions and newsletters with his approval and logging each one, which freed about a third of its quota. It also chased a missing refund from a former internet provider over chat and scheduled heating and cooling maintenance from past service records.

  • OutcomeHave an agent sort through a bloated old mailbox, propose what to delete in batches you approve, and keep a full record of everything removed.
  • SetupMinutes
  • LevelStarter
  • CreditAnand (@anandragn)
View original
Works with
Custom agentChatGPT agentGrok Bot

Published Oct 20, 2026Updated Oct 20, 2026AI dry run on sample input: passed Oct 20, 2026Source verified Oct 23, 2026

When should you use it?

  • An old mailbox is nearly full and you're getting storage warnings
  • Most of it is promotions and newsletters you never read
  • You want cleanup without risking important mail

Not for: Work mailboxes with retention rules; check with your IT team first

What do you need, and what do you get?

You need

  • Access to the mailbox
  • Senders and labels you always keep (banks, tax, family, receipts)
  • How old mail must be before it's eligible

You get

  • Batches of proposed deletions grouped by sender, with counts and sizes
  • A log of every deleted message (date, sender, subject)
  • A before-and-after storage figure

How does it work, step by step?

  1. Set keep rulesList senders and kinds of mail that must never be deleted.
  2. Review the planUse our prompt so it groups candidates by sender and shows you counts before deleting anything.
  3. Approve in batchesApprove group by group; start with obvious promotions.
  4. Keep the logSave the deletion log, and check the trash before it empties.

The prompt

Our own prompt, inspired by Anand (@anandragn) and written to work in Custom agent, ChatGPT agent and Grok Bot. Values in lime are placeholders.

Fill in the blanks (optional; the copied prompt uses your values)

Prompt3 variables
Clean out old mail in {mailbox}. Never delete mail from these senders or with these words: {keep_rules} (always include receipts, invoices, statements, tax and travel bookings).
1. Find messages older than {age} that are promotions or newsletters. Group them by sender with message counts and approximate size.
2. List those groups for me first; delete only the ones I approve.
3. Keep a log file with date, sender and subject of every deleted message.
4. Report storage before and after, and list the 10 senders sending the most mail so I can unsubscribe.

Inspired by Anand (@anandragn): Things my Muse agent got done while I took a nap. The prompt above is written by playbooks.bot in our own words; nothing from the original is quoted.

What can go wrong?

  • Receipts and account notices often come from marketing addresses. Keep anything with 'receipt', 'invoice' or 'statement' unless you approve it explicitly.
  • Deleting is often recoverable only for a limited time. Don't empty the trash until you've spot-checked.

Our take

Old mailboxes fill up slowly with promotions nobody reads, and cleaning them by hand is tedious enough that people just pay for more storage. Anand's agent handled about 80,000 messages, removed more than 20,000 old promotions with his approval, and kept a full log. Those two safeguards are what we'd copy: approval before deleting, and a record of what went. The same post also mentions the agent chasing a refund over chat and booking a maintenance visit, which shows the broader errand-running idea, but the cleanup is the most repeatable part. Our prompt adds keep rules for receipts, statements and family mail, groups deletions by sender so approval is quick, and asks for the log as a file. In our dry run on a made-up mailbox of 5,000 messages, it proposed 9 sender groups covering 2,140 promotions, held back 31 messages that looked like receipts, deleted only the 6 groups we approved, and produced a CSV log of each deletion.

Where the time goes back: Sorting tens of thousands of old emails by hand is hours of work; reviewing grouped batches takes minutes.

FAQ

Why approve batches instead of everything at once?
It's faster than message by message but still lets you catch a sender you need. The poster's agent deleted only with approval.
Does unsubscribing help too?
Yes. Ask it to list the top senders by volume so you can unsubscribe from the ones you never read.

Source and credit

Inspired by Anand (@anandragn). We describe the idea in our own words, link to the original, and wrote the prompt ourselves; nothing is quoted.

Inspired by
Things my Muse agent got done while I took a nap
Creator
Anand (@anandragn)
Published on
X
Original date
Sep 26, 2026
License
Not openly licensed (the poster keeps all rights), so we quote nothing and link to the original
Originally for
Custom agent
AI dry run
Oct 20, 2026: passed. Dry-run tested by our AI test agent on sample input. Keep rules respected; full log produced.
AI dry run on sample data; not run with live connected accounts. The playbooks.bot test agent filled the prompt with synthetic inputs, produced the output and checked it against the page's stated outputs and guardrails.
Verified
Oct 23, 2026: source link resolves to the original, the credited creator published it, our excerpt or prompt matches it, and the license allows our use.

Are you the creator? Claim or correct this page.

More in Money & Admin

All 89 Money & Admin playbooks →

Related playbooks

Money & AdminWorkflow✓ AI dry run

Gather your records into an immigration filing packet

Have a browser agent pull past tax filings, bank records and earlier visa papers from your accounts into one indexed packet for you or your attorney to check.

Credit: Atty Eleti (@athyuttamre)

Under an hour
Money & AdminRoutine✓ AI dry run

Log your spending from bank alerts on a home Pi

See all your spending across accounts, categorized with merchant details, without handing message access to a third-party app.

Credit: Fahad Hasin

An afternoon+
Money & AdminPrompt✓ AI dry run

Review your credit reports and dispute real errors

Use an AI assistant to sort a redacted credit report into possible mistakes, confirm each one yourself, and send factual disputes for the real errors only, for free.

Credit: Federal Trade Commission (FTC)

An afternoon+
Money & AdminRoutine✓ AI dry run

Find forgotten crypto deposits in your history

Have an assistant scan your wallet transaction history and flag deposits or airdrops that were never followed by a withdrawal.

Credit: pascal0x (@pscltllrd)

Under an hour
Money & AdminWorkflow✓ AI dry run

Let your assistant call around to find an item in stock

Connect your assistant to a calling service so it rings nearby stores, asks if an item is in stock and sends you transcripts and a summary.

Credit: Chris Maconi (@chrismaconi)

Under an hour