We have a self-hosted Gitlab running on one instance but every now and then we are facing space issues because the large artifacts filled up the space. We have to go and delete the older artifacts folders manually.
Is there a way to automate this? May be a script which runs overnight and delete the artifacts folder older than say 7 days?
The default expiration is set to 5 days in Gitlab Admin but that does not mean they are deleted from the box.