Skip to content

mxr storage

Generated from mxr storage --help. Edit the clap definitions in crates/daemon/src/cli/ and re-run npm run build in site/ to regenerate.

Roll up disk consumption by sender, mimetype, or label

mxr storage [OPTIONS]
FlagDescription
--by <BY>Group by which dimension. One of: sender, mimetype, label Possible values: - sender - mimetype - label - message: Per-message ranking: returns the single biggest emails with their IDs, so the output can drive mxr search/mxr trash/etc directly [default: sender]
--limit <LIMIT>Maximum buckets to return [default: 50]
--account <ACCOUNT>Restrict to a single account by id
--format <FORMAT>[possible values: table, json, jsonl, csv, ids]
-h, --helpPrint help (see a summary with ‘-h’)

Find large senders, MIME types, labels, or individual messages consuming disk.

Terminal window
mxr storage --by sender --limit 20
mxr storage --by message --format ids | mxr archive --dry-run