{
    "content": [
        {
            "type": "text",
            "text": "# cgclear(1) (man)\n\n**Summary:** cgclear - unload the cgroup filesystem\n\n**Synopsis:** cgclear [-e] [-l <filename>] [-L <directory>] [...]\n\n## Flags\n\n| Flag | Long | Arg | Description |\n|------|------|-----|-------------|\n| -l | --load | <filename> | specifies the config file to read. This option can be used multiple times and can be mixed with -L option. |\n| -L | --load-directory | <directory> | specifies the directory, which is searched for configuration files. All files in this directory will be processed in alp |\n| -e | — | — | file has tasks inside or has a subgroup, it won't be removed. This option works only with -l or -L options. |\n\n## Examples\n\n- `unload the whole cgroup filesystem`\n- `unload a subsystem of cgroup filesystem based on /etc/cgconfig.conf definition.`\n\n## See Also\n\n- cgconfigparser(1)\n- cgconfig.conf(5)\n\n## Section Outline\n\n- **NAME** (3 lines)\n- **SYNOPSIS** (3 lines)\n- **DESCRIPTION** (9 lines) — 3 subsections\n  - -l, --load=<filename> (4 lines)\n  - -L, --load-directory=<directory> (5 lines)\n  - -e (4 lines)\n- **ENVIRONMENT VARIABLES** (4 lines)\n- **FILES** (1 lines) — 2 subsections\n  - /etc/cgconfig.conf (2 lines)\n  - /etc/cgconfig.d/ (4 lines)\n- **EXAMPLES** (1 lines) — 2 subsections\n  - cgclear (3 lines)\n  - cgclear -l /etc/cgconfig.conf (3 lines)\n- **SEE ALSO** (5 lines)\n\n## Full Content\n\n### NAME\n\ncgclear - unload the cgroup filesystem\n\n### SYNOPSIS\n\ncgclear [-e] [-l <filename>] [-L <directory>] [...]\n\n### DESCRIPTION\n\nWithout  parameters,  this command moves all the tasks inside the various cgroups to the root\ncgroup, deletes all the cgroups and finally unmounts the cgroup filesystem from the system.\n\nIf one or more config files are specified, only groups defined in the config  files  are  re‐\nmoved.  The  files are processed in reverse order, i.e. the last file on command line is pro‐\ncessed first, so cgclear can have the same command line arguments  as  appropriate  cgconfig‐‐\nparser.\n\n#### -l, --load=<filename>\n\nspecifies  the  config file to read. This option can be used multiple times and can be\nmixed with -L option.\n\n#### -L, --load-directory=<directory>\n\nspecifies the directory, which is searched for configuration files. All files in  this\ndirectory will be processed in alphabetical order as they were specified by -l option.\nThis option can be used multiple times and can be mixed with -l option.\n\n#### -e\n\nfile  has  tasks inside or has a subgroup, it won't be removed. This option works only\nwith -l or -L options.\n\n### ENVIRONMENT VARIABLES\n\nCGROUPLOGLEVEL\ncontrols verbosity of the tool. Allowed values are DEBUG, INFO, WARNING or ERROR.\n\n### FILES\n\n#### /etc/cgconfig.conf\n\ndefault templates file\n\n#### /etc/cgconfig.d/\n\ndefault templates files directory\n\n### EXAMPLES\n\n#### cgclear\n\nunload the whole cgroup filesystem\n\n#### cgclear -l /etc/cgconfig.conf\n\nunload a subsystem of cgroup filesystem based on /etc/cgconfig.conf definition.\n\n### SEE ALSO\n\ncgconfigparser(1), cgconfig.conf(5)\n\n\n\nLinux                                        2009-10-23                                   CGCLEAR(1)\n\n"
        }
    ],
    "structuredContent": {
        "command": "cgclear",
        "section": "1",
        "mode": "man",
        "summary": "cgclear - unload the cgroup filesystem",
        "synopsis": "cgclear [-e] [-l <filename>] [-L <directory>] [...]",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [
            {
                "flag": "-l",
                "long": "--load",
                "arg": "<filename>",
                "description": "specifies the config file to read. This option can be used multiple times and can be mixed with -L option."
            },
            {
                "flag": "-L",
                "long": "--load-directory",
                "arg": "<directory>",
                "description": "specifies the directory, which is searched for configuration files. All files in this directory will be processed in alphabetical order as they were specified by -l option. This option can be used multiple times and can be mixed with -l option."
            },
            {
                "flag": "-e",
                "long": null,
                "arg": null,
                "description": "file has tasks inside or has a subgroup, it won't be removed. This option works only with -l or -L options."
            }
        ],
        "examples": [
            "unload the whole cgroup filesystem",
            "unload a subsystem of cgroup filesystem based on /etc/cgconfig.conf definition."
        ],
        "see_also": [
            {
                "name": "cgconfigparser",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/cgconfigparser/1/json"
            },
            {
                "name": "cgconfig.conf",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/cgconfig.conf/5/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 9,
                "subsections": [
                    {
                        "name": "-l, --load=<filename>",
                        "lines": 4,
                        "flag": "-l",
                        "long": "--load",
                        "arg": "<filename>"
                    },
                    {
                        "name": "-L, --load-directory=<directory>",
                        "lines": 5,
                        "flag": "-L",
                        "long": "--load-directory",
                        "arg": "<directory>"
                    },
                    {
                        "name": "-e",
                        "lines": 4,
                        "flag": "-e"
                    }
                ]
            },
            {
                "name": "ENVIRONMENT VARIABLES",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "FILES",
                "lines": 1,
                "subsections": [
                    {
                        "name": "/etc/cgconfig.conf",
                        "lines": 2
                    },
                    {
                        "name": "/etc/cgconfig.d/",
                        "lines": 4
                    }
                ]
            },
            {
                "name": "EXAMPLES",
                "lines": 1,
                "subsections": [
                    {
                        "name": "cgclear",
                        "lines": 3
                    },
                    {
                        "name": "cgclear -l /etc/cgconfig.conf",
                        "lines": 3
                    }
                ]
            },
            {
                "name": "SEE ALSO",
                "lines": 5,
                "subsections": []
            }
        ]
    }
}