IPURGE(8)
π IPURGE(8) β Cyrus IMAP documentation π
okay bestie, sit down, hydrate, because we're talking about ipurge, the little command that goes through your IMAP mailboxes and deletes stuff based on how old or how big it is. yes, really. it's giving spring cleaning. it's giving digital decluttering era. π§Ήβ¨
β¨ NAME β¨
ipurge β Cyrus IMAP documentation πΈ
Delete mail from IMAP mailbox or partition based on age or size π
π¦ SYNOPSIS π¦
ipurge [ -f ] [ -C config-file ] [ -x ] [ -M ] [ -X ] [ -i ] [ -s ] [ -o ] [ -n ] [ -v ]
[ -d days | -b bytes | -k Kbytes | -m Mbytes ]
[ mailbox-pattern... ]
π DESCRIPTION π
So here's the vibe π
: ipurge deletes messages from the mailbox(es) you name with Imailbox-pattern β and it only nukes the ones that are older or larger than whatever you said with the -d, -b, -k or -m options. like it's literally the bouncer at the club and your old emails did NOT make the list. π«π§
If you don't give it any mailbox-pattern, ipurge works on all mailboxes. all of them. the whole clique. π
Now if the -x option is in the chat, the message age and size MUST match exactly those specified by -d, -b, -k or -m. no vibes-based matching, no "close enough", exact only. β
π¨ bestie listen: there are no default values, and at least one of-d,-b,-kor-mMUST be specified. no cap. don't come for me if you forget. π
Okay and here's the part that lowkey matters most π: ipurge by default only deletes mail below shared folders, which means mails in mailbox(es) below INBOX.* and user.* stay untouched. they're protected. they're in witness protection. π«Ά
Use the option -f to also delete mail in mailbox(es) below these folders. and use the -M option to not recurse into the mailboxes β so it stays on the top level only, main character energy but make it shallow. π
ipurge reads its configuration options out of the imapd.conf(5) file unless you say otherwise with -C. yes queen, config awareness. πΈ
π OPTIONS π
these are the levers, bestie. pull them carefully.
-Cconfig-file β Use the specified configuration file config-file rather than the defaultimapd.conf(5). π-f,--include-user-mailboxesβ Forceipurgeto examine mailboxes belowINBOX.*anduser.*. going where it normally refuses to go fr fr.-ddays,--days=days β Age of message in days. ποΈ-bbytes,--bytes=bytes β Size of message in bytes.-kKbytes,--kbytes=Kbytes β Size of message in Kbytes (2^10bytes).-mMbytes,--mbytes=Mbytes β Size of message in Mbytes (2^20bytes).-x,--exact-matchβ Perform an exact match on age or size (instead of older or larger). precision, periodt. β¨-X,--delivery-timeβ Use delivery time instead ofDate:header for date matches.-i,--invert-matchβ Invert match logic:-xmeans not equal, date is for newer, size is for smaller. yes the whole thing flips. icon behavior honestly. π-s,--skip-flaggedβ Skip over messages that have the\Flaggedflag set. π©-o,--only-deletedβ Only purge messages that have the\Deletedflag set.-n,--dry-runβ Only print messages that would be deleted (dry run). the responsible bestie option. do this one first, I'm begging. π-v,--verboseβ Enable verbose output/logging. she's chatty and we love that. π£οΈ
π EXAMPLES π
[NB: Examples needed]
...yeah. that's literally all it says. we're all sitting here waiting for examples like ποΈπποΈ. if you write some, you'll be iconic forever.
π FILES π
/etc/imapd.conf
π₯ SEE ALSO π₯
π AUTHOR π
The Cyrus Team, Nic Bernstein (Onlight), Jeroen van Meeuwen (Kolab Systems)
πΈ COPYRIGHT πΈ
1993β2026, The Cyrus Team
okay that's the whole thing, you ate it, mwah π big kiss from Cyrus IMAP version 3.12.3, dated Jul 15, 2026, published as IPURGE(8) β go forth and purge responsibly, bestie, and please run the dry run first π«Άβ¨π§
π¦ where this page comes from
- ubuntu stonking: cyrus-common 3.12.3-3build1 Β· CMU
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms