# How to add the default task 'Cleanup service'

**URL:** <https://community.sonatype.com/t/how-to-add-the-default-task-cleanup-service/12082>\
**Category:** Sonatype Nexus Repository\
**Tags:** help\
**Created:** [February 14, 2024, 9:41am UTC](https://community.sonatype.com/t/how-to-add-the-default-task-cleanup-service/12082 "2024-02-14T09:41:23Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![tofsaf](https://avatars.discourse-cdn.com/v4/letter/t/82dd89/32.png) [@tofsaf](https://community.sonatype.com/u/tofsaf)\
**Post date:** [February 14, 2024, 9:41am UTC](https://community.sonatype.com/t/how-to-add-the-default-task-cleanup-service/12082/1 "2024-02-14T09:41:23Z")

</div>

Hi,

we inadvertently deleted the “Cleanup service” task aka “Admin - Cleanup repositories using their associated policies”  
how can we recreate it?

Thanks

---

_[View the full topic](https://community.sonatype.com/t/how-to-add-the-default-task-cleanup-service/12082)._
