github.com/Ilhicas/nomad@v1.0.4-0.20210304152020-e86851182bc3/website/content/docs/commands/system/gc.mdx (about)

     1  ---
     2  layout: docs
     3  page_title: 'Commands: system gc'
     4  sidebar_title: gc
     5  description: |
     6    Run the system garbage collection process.
     7  ---
     8  
     9  # Command: system gc
    10  
    11  Initializes a garbage collection of jobs, evaluations, allocations, and nodes.
    12  This is an asynchronous operation.
    13  
    14  ## Usage
    15  
    16  ```plaintext
    17  nomad system gc [options]
    18  ```
    19  
    20  If ACLs are enabled, this option requires a management token.
    21  
    22  ## General Options
    23  
    24  @include 'general_options_no_namespace.mdx'
    25  
    26  ## Examples
    27  
    28  Running the system gc command does not output unless an error occurs:
    29  
    30  ```shell-session
    31  $ nomad system gc
    32  
    33  ```