@Override
    public boolean deleteConsentDecisions(final String principal) {
        HttpResponse response = null;
        try {
            val headers = new HashMap<String, String>();
            headers.put(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON_VALUE);
            headers.put(HttpHeaders.ACCEPT, MediaType.APPLICATION_JSON_VALUE);
            headers.putAll(properties.getHeaders());
            val url = UriComponentsBuilder.fromUriString(resolveUrl())
                .queryParam("principal", principal)
                .build()
                .toUriString();
            val exec = HttpExecutionRequest.builder()
                .basicAuthPassword(properties.getBasicAuthPassword())
                .basicAuthUsername(properties.getBasicAuthUsername())
                .method(HttpMethod.DELETE)
                .url(url)
                .headers(headers)
                .build();
            response = HttpUtils.execute(exec);
            return response != null && HttpStatus.valueOf(response.getCode()).is2xxSuccessful();
        } finally {
            HttpUtils.close(response);
        }
    }
This is {@link RestfulConsentRepository}.

@author Misagh Moayyed
@since 5.1.0
support/cas-server-support-consent-rest/src/main/java/org/apereo/cas/consent/RestfulConsentRepository.java