{
    "mode": "info",
    "parameter": "RMF",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/info/RMF/json",
    "generated": "2026-07-05T22:21:39Z",
    "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 de-\nfault) folder, and then removes the folder (directory) itself.\n\nIf there are any files within the folder which are not a part  of  nmh,\nthey will not be removed, and an error will be produced.  If the folder\nis given explicitly, or the -nointeractive option is  given,  then  the\nfolder  will be removed without confirmation.  Otherwise, the user will\nbe asked for confirmation.  If rmf can't, for  some  reason,  find  the\ncurrent  folder  the  folder to be removed defaults to `+inbox' (unless\noverridden by the user's profile entry \"Inbox\"), with confirmation.\n\nIf the folder being removed is a subfolder, the parent folder will  be-\ncome the new current folder, and rmf will produce a message telling the\nuser this has happened.  This provides an easy mechanism for  selecting\na  set  of  messages, operating on the list, then removing the list and\nreturning 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\nsequences (i.e., .RI \"atr- seq - folder \" entries) for this folder from\nyour context without affecting the folder itself.\n\nrmf irreversibly deletes messages that don't have other links,  so  use\nit 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\nremoved; or if the current folder is removed, it will make \"inbox\" cur-\nrent.  Otherwise, it doesn't change the current folder or message.\n",
            "subsections": []
        },
        "BUGS": {
            "content": "Although  intuitively  one would suspect that rmf works recursively, it\ndoes not.  Hence, if you have a sub-folder within a folder, in order to\nrmf the parent, you must first rmf each of the children.\n\nnmh-1.7.1                         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"
        }
    ]
}