@Override
    public boolean delete(final RegisteredService registeredService) {
        val file = locateExistingRegisteredServiceFile(registeredService);
        if (file.isPresent()) {
            val message = "Deleted registered service " + registeredService.getName();
            FunctionUtils.doUnchecked(__ -> {
                FileUtils.forceDelete(file.get());
                commitAndPush(message);
            });
            load();
            return true;
        }
        return false;
    }
This is {@link GitServiceRegistry}.

@author Misagh Moayyed
@since 6.1.0
support/cas-server-support-git-service-registry/src/main/java/org/apereo/cas/services/GitServiceRegistry.java