lei-rm(1)

lei-rm1

Unindex a message in lei/store

Usage

lei {rm [OPTIONS] (- | --stdin)}

lei rm [OPTIONS] LOCATION

Overview

Removes message(s) and associated private metadata from lei/store indices. It does not affect messages stored in externals, so it's still possible to get "removed" messages from externals in lei-q search results.

This does not remove the message from underlying git storage nor does it remove messages from Maildir/mbox/IMAP/etc. sources.

Options

-
--stdin

Read input from standard input. This is the default if standard input is a pipe or regular file and there are no arguments on the command-line.

-F MAIL_FORMAT
--in-format=MAIL_FORMAT

Message input format: "eml", "mboxrd", "mboxcl2", "mboxcl", or "mboxo" when reading from stdin or using one of the mbox variants.

Not necessary when using an IMAP URL, NNTP URL or Maildir.

Default: "eml" when reading from stdin or if the file suffix ends in ".patch" or ".eml".

--lock=METHOD

mbox(5) locking method(s) to use: "dotlock", "fcntl", "flock" or "none".

Default: fcntl,dotlock

-q
--quiet

Suppress feedback messages.

Contact

Feedback welcome via plain-text mail to <mailto:[email protected]>

The mail archives are hosted at <https://public-inbox.org/meta/> and <http://4uok3hntl7oi7b4uf4rtfwefqeexfzil2w6kgk2jn5z2f764irre7byd.onion/meta/>

Releases

3 releases since Debian 12 (Bookworm); the text changed 1 time.

  1. 12–13
  2. Arch

From lei 2.1.0-2 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.