Cleanup Policy for maven2 except maven-hosted repositories

We are using Nexus-3.15.1-01 and would like to run cleanup policy for maven2 format.
But we would like to delete only the proxy repositories and keep maven-hosted repositories. Is there any way to keep maven-hosted not being deleted. please provide your suggestions

Cleanup Policies are applied on repository basis, so you will have to apply the desired policy on all your maven hosted repositories. After you created cleanup policy you can apply it to any repository you wish in repository settings.