# Nexus 3 - remove old snapshots - Ansible

**URL:** https://community.sonatype.com/t/nexus-3-remove-old-snapshots-ansible/5927
**Category:** Sonatype Nexus Repository
**Created:** [February 23, 2021, 8:47pm UTC](https://community.sonatype.com/t/nexus-3-remove-old-snapshots-ansible/5927 "2021-02-23T20:47:24Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![mikra85f](https://avatars.discourse-cdn.com/v4/letter/m/8e8cbc/32.png) [@mikra85f](https://community.sonatype.com/u/mikra85f)
#### Post date: [February 23, 2021, 8:47pm UTC](https://community.sonatype.com/t/nexus-3-remove-old-snapshots-ansible/5927/1 "2021-02-23T20:47:24Z")

</div>

Welcome.  
I have a problem with Ubuntu 18.04.3 LTS running out of disk space. On this system we have installed Nexus 3.21.1-01. I want to use ansible to remove old snapshots of the system, but I do not know where they are. How can I do it manually ? And ansible will adjust it by itself.  
Thanks for your reply.  
Adam

---

<div class="post-metadata">

### Author: ![mprescott](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/mprescott/32/178_2.png) [@mprescott](https://community.sonatype.com/u/mprescott)
#### Post date: [February 26, 2021, 6:06pm UTC](https://community.sonatype.com/t/nexus-3-remove-old-snapshots-ansible/5927/2 "2021-02-26T18:06:11Z")

</div>

Hey there, @mikra85f ! Have you looked at [cleanup policies](https://help.sonatype.com/repomanager3/repository-management/cleanup-policies)? This is exactly what they’re for: if you can articulate a rule for what you want removed, NXRM will do that automatically. Manual policies tend to be feast or famine, and don’t scale: you need to be removing as much as you create on a daily basis, unless you’re constantly increasing storage.

If you’re looking for unused stuff to delete manually in the short term, you could use the cleanup policy preview window; it’s not ideal.
