# How to add the default task ‘Cleanup service’

## post by tofsaf on Feb 14, 2024

Hi,

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

Thanks  
460 views  
1 link

## post by mfrost on Feb 14, 2024

Hi [@tofsaf](https://community.sonatype.com/u/tofsaf) - welcome! I believe you just need to do a server restart (per this Help doc: [Cleanup Policies](https://help.sonatype.com/en/cleanup-policies.html?_ga=2.102881600.1799868652.1707749305-1226582745.1698774557#cleanup-task-162040))

## post by tofsaf on Feb 16, 2024

It is so simple

Thanks !
