# \#cleanup

**URL:** https://community.sonatype.com/tag/cleanup/242.md

[Latest](https://community.sonatype.com/latest.md) · [Categories](https://community.sonatype.com/categories.md) · [Tags](https://community.sonatype.com/tags.md)

---

## [Cleaning up nuget repostories](https://community.sonatype.com/t/cleaning-up-nuget-repostories/15772)

<div class="topic-metadata">

**Author:** [@Orion\_Poplawski](https://community.sonatype.com/u/Orion_Poplawski)\
**Replies:** 4\
**Last updated:** [November 14, 2025, 5:25pm UTC](https://community.sonatype.com/t/cleaning-up-nuget-repostories/15772 "2025-11-14T17:25:35Z")

</div>

I would like to cleanup our nuget repositories to only have the latest version of each package. Is there a simple way to do that?

---

## [Cleanup unused nuget blobs not working?](https://community.sonatype.com/t/cleanup-unused-nuget-blobs-not-working/15769)

<div class="topic-metadata">

**Author:** [@Orion\_Poplawski](https://community.sonatype.com/u/Orion_Poplawski)\
**Replies:** 1\
**Last updated:** [November 12, 2025, 4:48pm UTC](https://community.sonatype.com/t/cleanup-unused-nuget-blobs-not-working/15769 "2025-11-12T16:48:41Z")

</div>

It appears that not all unused nuget blobs are getting cleaned up from storage. I’m running the 3.86.0-8 container image. For example, I’m pretty sure I only have adobereader 2025.1.20756 in my ChocolateyInternal repo,…

---

## [Issue with Cleanup Policies: Preview displays artifact but they are not cleaned when the cleanup task run](https://community.sonatype.com/t/issue-with-cleanup-policies-preview-displays-artifact-but-they-are-not-cleaned-when-the-cleanup-task-run/14960)

<div class="topic-metadata">

**Author:** [@anthony](https://community.sonatype.com/u/anthony)\
**Replies:** 20\
**Last updated:** [September 11, 2025, 12:37pm UTC](https://community.sonatype.com/t/issue-with-cleanup-policies-preview-displays-artifact-but-they-are-not-cleaned-when-the-cleanup-task-run/14960 "2025-09-11T12:37:11Z")

</div>

Hello, I have an issue with Nexus Cleanup Policies. I can’t make it work properly. Maybe I’m missing something. General information Nexus version: Community 3.80.0-06 Saturated: No Read-only: No Database: H2 Blobstor…

---

## [Customized clean-up policy](https://community.sonatype.com/t/customized-clean-up-policy/12117)

<div class="topic-metadata">

**Author:** [@verilerlehayat](https://community.sonatype.com/u/verilerlehayat)\
**Replies:** 4\
**Last updated:** [September 8, 2025, 8:40am UTC](https://community.sonatype.com/t/customized-clean-up-policy/12117 "2025-09-08T08:40:54Z")

</div>

I am using Sonatype Nexus RepositoryOSS 3.61.0-02. I have configured a clean-up policy such that artifacts are deleted after 30 days (Published Before). That works fine and deletion works. I am wondering if it is possibl…

---

## [How to set up Cleanup Policies?](https://community.sonatype.com/t/how-to-set-up-cleanup-policies/15467)

<div class="topic-metadata">

**Author:** [@1445499792](https://community.sonatype.com/u/1445499792)\
**Replies:** 2\
**Last updated:** [August 28, 2025, 1:33pm UTC](https://community.sonatype.com/t/how-to-set-up-cleanup-policies/15467 "2025-08-28T13:33:40Z")

</div>

Version: Sonatype Nexus Repository OSS 3.67.1-01 Deployment Method: Docker ﻿ I need to set up a cleanup policy for Maven Snapshots: I want to clean up those older than 10 days but must retain the latest one. ﻿ I set…

---

## [Nexus keep old components in blob store](https://community.sonatype.com/t/nexus-keep-old-components-in-blob-store/13131)

<div class="topic-metadata">

**Author:** [@liviamota.guimaraes70](https://community.sonatype.com/u/liviamota.guimaraes70)\
**Replies:** 0\
**Last updated:** [August 27, 2024, 4:10pm UTC](https://community.sonatype.com/t/nexus-keep-old-components-in-blob-store/13131 "2024-08-27T16:10:21Z")

</div>

The clean up tasks and compact blob are successfully executing daily. The clean up policy remove components published over 3 days ago, but there are a lots of components created in december 2023 that policy ignores and s…

---

## [Clean artefact - nexus 3](https://community.sonatype.com/t/clean-artefact-nexus-3/12722)

<div class="topic-metadata">

**Author:** [@michel13](https://community.sonatype.com/u/michel13)\
**Replies:** 3\
**Last updated:** [June 20, 2024, 6:13pm UTC](https://community.sonatype.com/t/clean-artefact-nexus-3/12722 "2024-06-20T18:13:12Z")

</div>

Hi, I wrote a python script to clean artefacts, but I don’t see the free space disque increase. ... response = requests.delete(url, auth=(username, password)) ... Why ? thx MPichel

---

## [Cleanup artedfact posted by curl](https://community.sonatype.com/t/cleanup-artedfact-posted-by-curl/12652)

<div class="topic-metadata">

**Author:** [@michel13](https://community.sonatype.com/u/michel13)\
**Replies:** 1\
**Last updated:** [May 30, 2024, 4:10pm UTC](https://community.sonatype.com/t/cleanup-artedfact-posted-by-curl/12652 "2024-05-30T16:10:31Z")

</div>

Hi, I want to use cleanup policy . It’s fine for artifact posted by maven (java code) BUT I also post zip file by curl command. And the cleanup policy doesn’t find any artefacts. Why ? Thx Michel

---

## [Cleanup Raw repository and keep last 3 files](https://community.sonatype.com/t/cleanup-raw-repository-and-keep-last-3-files/11782)

<div class="topic-metadata">

**Author:** [@david2](https://community.sonatype.com/u/david2)\
**Replies:** 1\
**Last updated:** [January 26, 2024, 10:15am UTC](https://community.sonatype.com/t/cleanup-raw-repository-and-keep-last-3-files/11782 "2024-01-26T10:15:52Z")

</div>

Hello, I want to use nexus to store my ZIP files used for releases in GitLab. I’m looking at how to set up cleanup policy. My repositories will be RAW type. here is an example of a file tree MyRepo | path1 | path2 …

---

## [Cleanup permissive repository](https://community.sonatype.com/t/cleanup-permissive-repository/11701)

<div class="topic-metadata">

**Author:** [@christophe0pelletier](https://community.sonatype.com/u/christophe0pelletier)\
**Replies:** 1\
**Last updated:** [December 4, 2023, 3:03pm UTC](https://community.sonatype.com/t/cleanup-permissive-repository/11701 "2023-12-04T15:03:25Z")

</div>

Hello, When using maven deploy plugin with a yum repository in nexus, layout policy must be set to Permissive. When cleaning up this repository, its seems that only artifacts with default type (rpm for yum) get delete…

---

## [Nexus Repository Best Practices: Cleanup Policies, Part 2](https://community.sonatype.com/t/nexus-repository-best-practices-cleanup-policies-part-2/11593)

<div class="topic-metadata">

**Author:** [@jzora](https://community.sonatype.com/u/jzora)\
**Replies:** 2\
**Last updated:** [November 21, 2023, 9:12pm UTC](https://community.sonatype.com/t/nexus-repository-best-practices-cleanup-policies-part-2/11593 "2023-11-21T21:12:17Z")

</div>

In our last Best Practices post (which you can read here) we talked a little about cleanup policies. The operative word there is “little” – there’s a lot more to say. This one may be obvious, but a best practice is to s…

---

## [Nexus Repository Best Practices: Cleanup Policies](https://community.sonatype.com/t/nexus-repository-best-practices-cleanup-policies/11467)

<div class="topic-metadata">

**Author:** [@jzora](https://community.sonatype.com/u/jzora)\
**Replies:** 6\
**Last updated:** [November 13, 2023, 5:38pm UTC](https://community.sonatype.com/t/nexus-repository-best-practices-cleanup-policies/11467 "2023-11-13T17:38:35Z")

</div>

Quiz time: imagine a Nexus Repository instance used by a Javascript team that builds once every two weeks. How can an administrator remove components from the repo that aren’t being used? And how long should a component …
