2020-01-13 10:35:24 +00:00
|
|
|
---
|
|
|
|
layout: "docs"
|
|
|
|
page_title: "Commands: system gc"
|
|
|
|
sidebar_current: "docs-commands-system-gc"
|
|
|
|
description: >
|
|
|
|
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]
|
|
|
|
```
|
|
|
|
|
|
|
|
## General Options
|
|
|
|
|
|
|
|
<%= partial "docs/commands/_general_options" %>
|
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
|
|
|
Running the system gc command does not output unless an error occurs:
|
|
|
|
|
|
|
|
```shell
|
|
|
|
$ nomad system gc
|
|
|
|
```
|