Remove Docker images from Nexus Repository Manager OSS 3.0.1-01 Remove Docker images from Nexus Repository Manager OSS 3.0.1-01 docker docker

Remove Docker images from Nexus Repository Manager OSS 3.0.1-01


Yes to clean up old container images periodically you need to set up two tasks

  1. Cleanup container images
  2. Compact blob store.

The first is just soft delete (marking for deletion), the second task does the job of actual clean up so make sure you do both.

Below are the steps

  1. Log in to nexus repo ->settings-> Repository ->Clean up Policies->Create Clean up Policy
    1. Provide a name, Set format as docker Specify a criteria . Click Create
    2. Select Repository -> Repositories ->
    3. In The Clean up Policy select your recently created clean up policy
    4. Save
    5. Select Tasks from Administrations tab
    6. You will see a task
    7. Select Create Task -> Compact Blob Store ->Select default blob store and specify your clean up schedule.

Together both the task created above will do the clean up docker blobs as per criteria defined in the policy.


There doesn't seems to have any option to delete components from Group Repository but you have option to delete component from Proxy or Hosted repository.

Deleting component function is enabled only for admin user, by default.

here is screenshot for reference


For this feature to appear in Nexus, a general question within Docker Registry API should be resolved, see Deleting images from a private docker registry