# Cleanup Policy Clarification

**URL:** <https://community.sonatype.com/t/cleanup-policy-clarification/6264>\
**Category:** Sonatype Nexus Repository\
**Created:** [April 7, 2021, 12:29pm UTC](https://community.sonatype.com/t/cleanup-policy-clarification/6264 "2021-04-07T12:29:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jbkoopman](https://avatars.discourse-cdn.com/v4/letter/j/258eb7/32.png) [@jbkoopman](https://community.sonatype.com/u/jbkoopman)\
**Post date:** [April 7, 2021, 12:29pm UTC](https://community.sonatype.com/t/cleanup-policy-clarification/6264/1 "2021-04-07T12:29:09Z")

</div>

Hi,

Posting this question here for clarification on The Cleanup policy and its effects.  
It is to my understanding according to official docs: [1] that when applying a cleanup policy to a repository, the item should still be displayed in the frontend, however, marked as “deleted=true”.

We applied this policy to our NuGet-repository as an example with the preview result showing just one item for removal. The item seemed to have completely disappeared from the frontend UI when browsing through the repositories (however, when searching for the specific package name, the item showed up as a result.). After some regex magic through the millions of files in the backend, managed to obtain the related .properties for the item to restore it.

My question/clarification: is this by design? Is there any easier route we can follow to obtain/list the affected items marked by the cleanup policy instead of every time having to log in to the backend and join a search party to obtain the related .properties files for items marked deleted=true?

Thanks in advance  
Kind Regards

---

<div class="post-metadata">

**Author:** ![mpiggott](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@mpiggott](https://community.sonatype.com/u/mpiggott)\
**Post date:** [April 7, 2021, 1:24pm UTC](https://community.sonatype.com/t/cleanup-policy-clarification/6264/2 "2021-04-07T13:24:56Z")

</div>

[https://help.sonatype.com/repomanager3/repository-management/cleanup-policies](https://help.sonatype.com/repomanager3/repository-management/cleanup-policies)

Cleanup policies are for deleting content from repositories based on criteria.

---

<div class="post-metadata">

**Author:** ![jbkoopman](https://avatars.discourse-cdn.com/v4/letter/j/258eb7/32.png) [@jbkoopman](https://community.sonatype.com/u/jbkoopman)\
**Post date:** [April 7, 2021, 1:49pm UTC](https://community.sonatype.com/t/cleanup-policy-clarification/6264/3 "2021-04-07T13:49:46Z")

</div>

Hi,

Thanks for the response.  
The criteria is being met and one item is flagged for cleanup which it did.

My question is mainly are we supposed to be able to see the item listed in the UI or not?  
After running the cleanup policy its not available in browse, however I can search for it.

Regards

---

<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:** [April 12, 2021, 1:13pm UTC](https://community.sonatype.com/t/cleanup-policy-clarification/6264/4 "2021-04-12T13:13:24Z")

</div>

Justin, cleaned up items should be completely invisible from the UI or command-line clients. If the item is still showing up in search, it sounds like an event to update the search index wasn’t processed. Is this a widespread issue, or is there just an item or two still showing?

---

<div class="post-metadata">

**Author:** ![mpiggott](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@mpiggott](https://community.sonatype.com/u/mpiggott)\
**Post date:** [April 12, 2021, 2:29pm UTC](https://community.sonatype.com/t/cleanup-policy-clarification/6264/5 "2021-04-12T14:29:25Z")

</div>

For NuGet you’re probably seeing components which aren’t locally cached
