{
    "mode": "man",
    "parameter": "rmf",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/rmf/1/json",
    "generated": "2026-09-17T11:33:15Z",
    "synopsis": "rmf [-help] [-version] [+folder] [-interactive | -nointeractive]",
    "sections": {
        "NAME": {
            "content": "rmf - remove an nmh folder\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "rmf [-help] [-version] [+folder] [-interactive | -nointeractive]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "rmf  removes  all  of the messages (files) within the specified (or default) folder, and then\nremoves the folder (directory) itself.\n\nIf there are any files within the folder which are not a part of nmh, they will  not  be  re‐\nmoved,  and an error will be produced.  If the folder is given explicitly, or the -nointerac‐\ntive option is given, then the folder will be removed without confirmation.   Otherwise,  the\nuser  will be asked for confirmation.  If rmf can't, for some reason, find the current folder\nthe folder to be removed defaults to `+inbox' (unless overridden by the user's profile  entry\n“Inbox”), with confirmation.\n\nIf  the  folder  being  removed is a subfolder, the parent folder will become the new current\nfolder, and rmf will produce a message telling the user this has happened.  This provides  an\neasy mechanism for selecting a set of messages, operating on the list, then removing the list\nand returning to the current folder, from which the list was extracted.\n\nIf  rmf  is  used  on a read-only folder, it will delete all the private sequences (i.e., .RI\n“atr- seq - folder ” entries) for this folder from your context without affecting the  folder\nitself.\n\nrmf irreversibly deletes messages that don't have other links, so use it with caution.\n",
            "subsections": []
        },
        "FILES": {
            "content": "$HOME/.mhprofile          The user profile\n",
            "subsections": []
        },
        "PROFILE COMPONENTS": {
            "content": "Path:                To determine the user's nmh directory\nCurrent-Folder:      To find the default current folder\nInbox:               To find the default inbox\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "folder(1), rmm(1)\n",
            "subsections": []
        },
        "DEFAULTS": {
            "content": "`+folder' defaults to the current folder, usually with confirmation\n`-interactive' if +folder' not given, `-nointeractive' otherwise\n",
            "subsections": []
        },
        "CONTEXT": {
            "content": "rmf  will  set  the  current folder to the parent folder if a subfolder is removed; or if the\ncurrent folder is removed, it will make “inbox” current.  Otherwise, it  doesn't  change  the\ncurrent folder or message.\n",
            "subsections": []
        },
        "BUGS": {
            "content": "Although  intuitively  one  would suspect that rmf works recursively, it does not.  Hence, if\nyou have a sub-folder within a folder, in order to rmf the parent, you must first rmf each of\nthe children.\n\nnmh-1.8                                      1999-04-30                                     RMF(1mh)",
            "subsections": []
        }
    },
    "summary": "rmf - remove an nmh folder",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "folder",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/folder/1/json"
        },
        {
            "name": "rmm",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/rmm/1/json"
        }
    ]
}