@Override
    protected double maintain() {
        if ( ! applicationRepository.configserverConfig().hostedVespa()) return 1.0;

        Set<TenantName> tenants = applicationRepository.deleteUnusedTenants(ttlForUnusedTenant, clock.instant());
        if (tenants.size() > 0) log.log(Level.INFO, "Deleted tenants " + tenants);
        return 1.0;
    }
Removes unused tenants (has no applications and was created more than 7 days ago)

@author hmusum
configserver/src/main/java/com/yahoo/vespa/config/server/maintenance/TenantsMaintainer.java