2020-01-13 10:35:24 +00:00
|
|
|
---
|
2020-02-06 23:45:31 +00:00
|
|
|
layout: docs
|
|
|
|
page_title: 'Commands: system gc'
|
|
|
|
sidebar_title: gc
|
|
|
|
description: |
|
2020-01-13 10:35:24 +00:00
|
|
|
Run the system garbage collection process.
|
|
|
|
---
|
|
|
|
|
|
|
|
# Command: system gc
|
|
|
|
|
|
|
|
Initializes a garbage collection of jobs, evaluations, allocations, and nodes.
|
2020-01-13 14:45:14 +00:00
|
|
|
This is an asynchronous operation.
|
2020-01-13 10:35:24 +00:00
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
```plaintext
|
|
|
|
nomad system gc [options]
|
|
|
|
```
|
|
|
|
|
2020-11-19 21:38:08 +00:00
|
|
|
If ACLs are enabled, this option requires a management token.
|
|
|
|
|
2020-01-13 10:35:24 +00:00
|
|
|
## General Options
|
|
|
|
|
2020-11-19 18:02:48 +00:00
|
|
|
@include 'general_options_no_namespace.mdx'
|
2020-01-13 10:35:24 +00:00
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
|
|
|
Running the system gc command does not output unless an error occurs:
|
|
|
|
|
2020-05-18 20:53:06 +00:00
|
|
|
```shell-session
|
|
|
|
$ nomad system gc
|
2020-05-01 20:02:21 +00:00
|
|
|
|
2020-01-13 10:35:24 +00:00
|
|
|
```
|