Commit 5b905654 authored by Marcel Amirault's avatar Marcel Amirault

Merge branch 'nelbacha-master-patch-09089' into 'master'

Add example to manually delete job logs

See merge request gitlab-org/gitlab!32653
parents 3d8c8dd9 f128c31c
......@@ -64,6 +64,15 @@ There isn't a way to automatically expire old job logs, but it's safe to remove
them if they're taking up too much space. If you remove the logs manually, the
job output in the UI will be empty.
For example, to delete all job logs older than 60 days, run the following from a shell in your GitLab instance:
DANGER: **Warning:**
This command will permanently delete the log files and is irreversible.
```shell
find /var/opt/gitlab/gitlab-rails/shared/artifacts -name "job.log" -mtime +60 -delete
```
## New incremental logging architecture
> - [Introduced](https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/18169) in GitLab 10.4.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment