Enable Auto-Deletion of Repository Events

Estimated reading time: 1 minute

This topic applies to Docker Enterprise.

The Docker Enterprise platform business, including products, customers, and employees, has been acquired by Mirantis, inc., effective 13-November-2019. For more information on the acquisition and how it may affect you and your business, refer to the Docker Enterprise Customer FAQ.


Docker Trusted Registry has a global setting for repository event auto-deletion. This allows event records to be removed as part of garbage collection. DTR administrators can enable auto-deletion of repository events in DTR 2.6 based on specified conditions which are covered below.


  1. In your browser, navigate to https://<dtr-url> and log in with your admin credentials.

  2. Select System from the left navigation pane which displays the Settings page by default.

  3. Scroll down to Repository Events and turn on Auto-Deletion.

  4. Specify the conditions with which an event auto-deletion will be triggered.

    DTR allows you to set your auto-deletion conditions based on the following optional repository event attributes:

    Name Description Example
    Age Lets you remove events older than your specified number of hours, days, weeks or months 2 months
    Max number of events Lets you specify the maximum number of events allowed in the repositories. 6000

If you check and specify both, events in your repositories will be removed during garbage collection if either condition is met. You should see a confirmation message right away.

  1. Click Start GC if you’re ready. Read more about garbage collection if you’re unsure about this operation.

  2. Navigate to System > Job Logs to confirm that onlinegc has happened.

Where to go next

registry, events, log, activity stream