@Override
    public boolean deleteConsentDecision(final long decisionId, final String principal) throws Throwable {
        return this.consentDecisions.removeIf(d -> d.getId() == decisionId && d.getPrincipal().equalsIgnoreCase(principal));
    }
This is {@link BaseConsentRepository}.

@author Misagh Moayyed
@since 5.2.0
support/cas-server-support-consent-core/src/main/java/org/apereo/cas/consent/BaseConsentRepository.java