---
title: "How do I purge old unused images in ITRS Analytics?"
description: "Old unused ITRS Analytics images can consume disk space and trigger security scanner findings. Verify images are not in use, prune them with k0s, and confirm removal with follow-up checks."
url: "https://docs.itrsgroup.com/docs/faq/itrs-analytics/33282753926429-itrs-analytics-how-to-purge-old-unused-images/index.html"
---
Old ITRS Analytics images may accumulate on disk after upgrades. Unused images can consume space and appear as vulnerabilities in security scans. Before removing anything, confirm the target image is not used by your current ITRS Analytics version.

## Procedure

1. Locate the old image or package you want to remove. For example, to find an unused Java package:

   ```
   find / -name 'java-21-openjdk-21.0.6.0.7-1.el9.x86_64'
   ```

2. List container images and confirm older versions are still present:

   ```
   k0s ctr i ls | grep obcerv | cut -d' ' -f1
   ```

3. Prune unused images:

   ```
   k0s ctr i prune --all
   ```

4. Verify removal by re-running the checks from steps 1 and 2.

   The `find` command should return no results, and `k0s ctr i ls` should show only images for your current ITRS Analytics version.


