@Override
    public void deleteAll() {
        val query = new Query(Criteria.where("principal").exists(true));
        mongoTemplate.remove(query, ConsentDecision.class, this.collectionName);
    }
This is {@link MongoDbConsentRepository}.

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