@Override
    public void deleteAll() {
        lock.tryLock(__ -> {
            configurationContext.getServicesCache().asMap().forEach((key, v) -> delete(v));
            configurationContext.getServicesCache().invalidateAll();
            val clientInfo = ClientInfoHolder.getClientInfo();
            publishEvent(new CasRegisteredServicesDeletedEvent(this, clientInfo));
        });
    }
This is {@link AbstractServicesManager}.

@author Misagh Moayyed
@since 5.2.0
core/cas-server-core-services-registry/src/main/java/org/apereo/cas/services/mgmt/AbstractServicesManager.java