title: GitLab container registry: Any way to automate deletion of old containers?
body: <p>We have a GitLab CI pipeline which builds a new Docker image based on an external ETCD snapshot of a Hashicorp Vault secrets back-end. The image is for disaster recovery so we don't have any interest in keeping old versions in the registry. </p>
  
  <p>Is there any way of purging GitLab registry container images which are older than a certain date. Or to keep a maximum number of recent images and delete the rest?</p>
  
  <p>Thanks</p>
  
  <p>S </p>