@Override
    public boolean delete(final RegisteredService registeredService) {
        val response = searchForServiceById(registeredService.getId());
        if (LdapUtils.containsResultEntry(response)) {
            val entry = response.getEntry();
            return connectionFactory.executeDeleteOperation(entry);
        }
        LOGGER.debug("Could not locate registered service by id [{}] to delete", registeredService.getId());
        return false;
    }
Implementation of the ServiceRegistry interface which stores the services in a LDAP Directory.

@author Misagh Moayyed
@author Marvin S. Addison
@since 4.0.0
support/cas-server-support-ldap-service-registry/src/main/java/org/apereo/cas/adaptors/ldap/services/LdapServiceRegistry.java