relgap cache prune
Deletes entries that no run has used for --older-than (default 720h, 30 days), entries relgap can't read, entries in an older format and temporary files left by an interrupted run. Expired entries stay: their ETags let the next run revalidate them for free.
Usage
sh
relgap cache prune [flags]Flags
| Flag | Description | Type | Default | Values | Config key | Notes |
|---|---|---|---|---|---|---|
--older-than | delete entries unused for this long | duration | 720h0m0s | 24h: a day168h: a week720h: 30 days |
The global flags work with every command.
Output formats
--format accepts tty, plain, json. Without it, the format is tty when stdout is a terminal and plain otherwise. Formats are described on the global flags page.
Exit codes
| Code | Meaning |
|---|---|
| 0 | The command finished. With --fail-on, nothing matched. |
| 1 | The command failed: a read, a write, a child process or a check failed. |
| 2 | Wrong usage: an unknown command or flag, a bad value or argument, an invalid config file, or a prompt with no terminal. |
| 130 | Interrupted by Ctrl-C (SIGINT) or a cancelled context. |
All codes are listed on the exit codes page.
Examples
sh
relgap cache prune
relgap cache prune --older-than 168h