{
    "mode": "man",
    "parameter": "CGCLEAR",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/CGCLEAR/1/json",
    "generated": "2026-06-03T04:25:23Z",
    "synopsis": "cgclear [-e] [-l <filename>] [-L <directory>] [...]",
    "sections": {
        "NAME": {
            "content": "cgclear - unload the cgroup filesystem\n\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "cgclear [-e] [-l <filename>] [-L <directory>] [...]\n\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Without  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",
            "subsections": [
                {
                    "name": "-l, --load=<filename>",
                    "content": "specifies  the  config file to read. This option can be used multiple times and can be\nmixed with -L option.\n\n",
                    "flag": "-l",
                    "long": "--load",
                    "arg": "<filename>"
                },
                {
                    "name": "-L, --load-directory=<directory>",
                    "content": "specifies 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",
                    "flag": "-L",
                    "long": "--load-directory",
                    "arg": "<directory>"
                },
                {
                    "name": "-e",
                    "content": "file  has  tasks inside or has a subgroup, it won't be removed. This option works only\nwith -l or -L options.\n\n",
                    "flag": "-e"
                }
            ]
        },
        "ENVIRONMENT VARIABLES": {
            "content": "CGROUPLOGLEVEL\ncontrols verbosity of the tool. Allowed values are DEBUG, INFO, WARNING or ERROR.\n\n",
            "subsections": []
        },
        "FILES": {
            "content": "",
            "subsections": [
                {
                    "name": "/etc/cgconfig.conf",
                    "content": "default templates file\n"
                },
                {
                    "name": "/etc/cgconfig.d/",
                    "content": "default templates files directory\n\n\n"
                }
            ]
        },
        "EXAMPLES": {
            "content": "",
            "subsections": [
                {
                    "name": "cgclear",
                    "content": "unload the whole cgroup filesystem\n\n"
                },
                {
                    "name": "cgclear -l /etc/cgconfig.conf",
                    "content": "unload a subsystem of cgroup filesystem based on /etc/cgconfig.conf definition.\n\n"
                }
            ]
        },
        "SEE ALSO": {
            "content": "cgconfigparser(1), cgconfig.conf(5)\n\n\n\nLinux                                        2009-10-23                                   CGCLEAR(1)",
            "subsections": []
        }
    },
    "summary": "cgclear - unload the cgroup filesystem",
    "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"
        }
    ]
}